I know it is a probable duplicate of this question. But the answer to that question includes the | inside the catch (..|..) which is unsupported in the earlier Java versions. I am bound to use an old version though. I have the same response to any type of exception. So, I would like to combine my catch statements in one, like this:
try {...}
catch(Excetion1 e1 OR Exception2 e2 OR etc)
{
...
}
I tried to use the hash | instead of OR, with no result. Is there any work around for older Java versions?