Does Oracle PL/SQL have a standard ASSERT routine? 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( &lt;condition&gt;, &lt;msg&gt;)


such that when the &lt;condition&gt; passed in the first argument is false an exception is raised with the specified &lt;msg&gt; 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.
There isn't a built-in assertion procedure in SQL or PL/SQL, so you will have to write your own.

There are two ways of going about this. You can either manually raise an exception, as discussed in this Oracle article, or you can write a wrapper for the raise_application_error procedure, which is documented in the Oracle exception handling section of the documentation. 

I'll add that exceptions were designed for this kind of scenario, so you'd be better off taking your programmer hat off for a second &amp; using your DBA hat :)