|
When debugging, if you don't try it yourself, it is very likely that you won't see the exception during debugging.
Another thing is that what you see is a demo in itself, which means that you must try, and the processing given is just an example. Of course, you can add other exception handling logic yourself.
It is definitely beneficial to add appropriate exception handling when writing code. It is more convenient to put the code skeleton there in advance and write the exception handling logic when appropriate. |
|