Capture multiple java8 exception of a written

This is prompted intellij idea of ​​knowing,

Can be written as

catch(xxxException | yyyException | zzzException e){

}

A form handling of the same code several different abnormal use.

 

Guess you like

Origin www.cnblogs.com/silvestris/p/12037694.html