Подтвердить что ты не робот

Несколько разных типов обработки исключений в одном блоке catch?

Если в catch() разрешено несколько исключений, это уменьшит количество избыточного кода обработки ошибок. например,

try{
// some statments 
}
catch(Type1Exception t1, Type2Exception t2, Type3Exception t3) {   // wish if this could be allowed
/* t1, t2, t3 are children of Exception and needs same error handling then why to have different catch blocks with same piece of code */
}
4b9b3361