Parameters
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
- ecode
-
The error number associated with the exception condition.
- errMsg
-
The error message associated with the exception condition.
In this example, the
DhSQLExceptionconstructor creates an exception object calledexcepand then throws theexcepobject under all conditions:CREATE PROCEDURE sp1_02() BEGIN // raising exception DhSQLException excep = new DhSQLException(666,new String ("Entered the tst02 procedure")); if (true) throw excep; END