+ 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 Réponse