Well... I came across this. I understand throwing exceptions- this deals with multiple exceptions. What does it do? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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 Antwort