Well... I came across this. I understand throwing exceptions- this deals with multiple exceptions. What does it do? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Well... I came across this. I understand throwing exceptions- this deals with multiple exceptions. What does it do?

"catch (ExceptionType1 | ExceptionType2 | ExceptionType3 e) {// equal handling} => shorter and easier to handle if you have only one kind of treatment"

29th Nov 2017, 12:34 AM
Rizan
Rizan - avatar
1 ответ