How To Catch Every Rare Creature On The Official List Of Prodigy Pets In The Game World

Will try-catch capture all errors that @@error can?

How To Catch Every Rare Creature On The Official List Of Prodigy Pets In The Game World 1

In the following code fragment, is it worthwhile to check for @@error?

How To Catch Every Rare Creature On The Official List Of Prodigy Pets In The Game World 2

Will return 1111 ever occur?

Set xact_abort on.

How To Catch Every Rare Creature On The Official List Of Prodigy Pets In The Game World 4

Catch will only run if an exception is thrown and the catch block can handle that type of exception.

The finally block is the one that will run when the try block is complete.

How To Catch Every Rare Creature On The Official List Of Prodigy Pets In The Game World 6

Delegating the exception from the first catch to a different function or the calling function would be ok, but adding more code which may or may not throw an exception into the first catch, is.

Nope, (or ) is 's friend and always there as part of try/catch.

How To Catch Every Rare Creature On The Official List Of Prodigy Pets In The Game World 8

However, it is perfectly valid to have them empty, like in your example.

In the comments in your example code (if func1 throws.