DBILITY

java 7 multiple exception catch 본문

java

java 7 multiple exception catch

DBILITY 2016. 10. 4. 10:08
반응형

java 7부터 catch block에 pipe를 통한 muitiple exception catch가 가능합니다.

....

} catch ( IOException|SQLException ex ) {
    logger.log(ex);
    throw ex;

}

http://docs.oracle.com/javase/7/docs/technotes/guides/language/catch-multiple.html

반응형
Comments