Syntax
Sends the error being handled in a CATCH on to the next enclosing TRY, unchanged.
RETHROWGood to know
- Allowed only inside a CATCH, or in a block nested in a CATCH. Anywhere else: "RETHROW requires an active CATCH block".
- It takes no value: "RETHROW does not accept a value". It works even after a bare
CATCHwith no variable. - The FINALLY of the same TRY runs before the outer CATCH.
- Unlike
THROW e, the error keeps itsname,codeandcommand.