Created
April 28, 2019 01:23
-
-
Save TysonJouglet/685f56657527697793a245d60b8ca7e1 to your computer and use it in GitHub Desktop.
assert procedure for pl/sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create or replace procedure assert ( | |
p_condition in boolean, | |
p_message in varchar2 | |
) | |
is | |
begin | |
if not p_condition | |
or p_condition is null | |
then | |
raise_application_error(-20001, p_message); | |
end if; | |
end assert; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment