// 例外が既に定義されているとき
nullEx NullValueException;
...
throw nullEx;
// 定義および宣言
Record CustomerException type Exception
customerNumber INT;
end
...
throw new customerException {
customerNumber = custNum,
message = "Illegal customer number" };
例外はエラーが発生した位置から上方に伝搬します。try 文が、 どんなに深くネストされていても、try ブロックから呼び出されたすべての関数内で生じた例外を処理できます。例外処理のプロセスについて詳しくは、例外処理を参照してください。

| プラットフォーム | 問題 |
|---|---|
| V6 の例外互換モード | v60ExceptionCompatibility プログラム・プロパティーが YES に設定されている場合、throw 文は無効です。 |