y2p*_*y2p 0 java exception-handling
我运行代码时遇到一些例外.我想要做的是,我希望继续FileNotFoundException和NullPointerException和任何其他异常中断.
我该怎么办呢?谢谢
try {
stuff()
} catch( NullPointerException e ) {
// Do nothing... go on
} catch( FileNotFoundException e ) {
// Do nothing... go on
} catch( Exception e ) {
// Now.. handle it!
}
Run Code Online (Sandbox Code Playgroud)