SIGNAL

The SIGNAL statement is used to signal an error. It causes an error to be returned with the specified SQLSTATE and error description.

For a description of the statement, see SIGNAL statement.