// when the exception is already defined
nullEx NullValueException;
...
throw nullEx;
// define and declare
Record CustomerException type Exception
customerNumber INT;
end
...
throw new customerException {
customerNumber = custNum,
message = "Illegal customer number" };
Exceptions propagate upward from the point of the error. A try statement can handle an exception that occurs within any functions called from the try block, no matter how deeply nested. For more information on the exception handling process, see Exception handling.

| Platform | Issue |
|---|---|
| V6 exception compatibility mode | If the v60ExceptionCompatibility program property is set to YES, the throw statement is not valid. |