I'd like to use an ASSERT routine functionally similar to the one found in other languages, i.e. a construct (be it a procedure, syntax...)
ASSERT( <condition>, <msg>)
such that when the
<condition> passed in the first argument is false an exception is raised with the specified
<msg> descriptive message.
I know this is trivial to do by hand but I'm asking if there's a standard one provided with the DBMS.
Having to write my own one or import one from 3rdy-party packages would be impractical, since I'd need it to be completely portable and transparent to every project I'm working on.