rethrow Statement

rethrow statements let you re-raise an error that has been caught in a catch block. The rethrow statement must be inside a catch block.

Syntax

try
...
catch
...
rethrow
end try

Usage

Use rethrow if you want to handle some errors but not others. Commonly, you may want to check the ErrorCode and handle specific error codes and rethrow the rest.
try
...
catch
if ErrorCode() = ERR_FILE_NOT_FOUND then
print "File not found!"
else
rethrow
end if
end try