Exception Handling

PSL provides a sophisticated mechanism for generating (i.e., throwing) and handling (i.e., catching) run-time errors in application code. Some PSL methods (e.g., Db.getRecord) throw errors on exception conditions that the method is designed to recognize, such as whether or not a database record maps to the access keys. The compiler code passes the errors up the call stack, starting at the level of the calling subroutine, until they are "caught" by a catch block that matches the error type.

For additional information concerning handling errors, refer to the following sections:

Catching Exceptions

Throwing Exceptions