Getting started
User guides
Administration guides
Reference guides
Resources
Updated Aug 12, 2022
Send us feedback
raise_error
Throws an exception with expr as the message.
expr
raise_error(expr)
expr: A STRING expression.
The NULL type.
NULL
The function raises a runtime error with expr as the error message.
> SELECT raise_error('custom error message'); custom error message
assert_true function