-In a nested `CATCH` block, `ERROR_PROCEDURE` returns the error number specific to the scope of the `CATCH` block that referenced that `CATCH` block. For example, the `CATCH` block of an outer TRY...CATCH construct could have an inner `TRY...CATCH` construct. Inside that inner `CATCH` block, `ERROR_PROCEDURE` returns the number of the error that invoked the inner `CATCH` block. If `ERROR_PROCEDURE` runs in the outer `CATCH` block, it returns the number of the error that invoked that outer `CATCH` block.
0 commit comments