Exception handling, exception log statute

1, in order to capture the abnormal process.

If you do not want to deal with, you can throw on a layer of the caller, the outermost layer of the user to convert it into what the user easy to understand.

2.finally block must be closed to resource object, stream object.

finally block the return method that returns the end of the execution, execution will not try ... catch the return statement.

Guess you like

Origin www.cnblogs.com/SelamatPagi/p/12233408.html