RAISE_ERROR

Returns an error with the specified SQLSTATE, along with SQLCODE -438, and error condition to the statement that includes the function.

RAISE_ERROR is restricted to the following constructs: