NET/MASTER Network Control Language (NCL) Reference Manual
ON
Core Statements
106126 Tandem Computers Incorporated 2–39
Table 2-2 lists system-defined condition names and provides a description of their
meaning. You can substitute any of these condition names for
condition-name
in an ON block. Refer to the NonStop NET/MASTER NCL Programmer's Guide for a
detailed discussion of error handling in NCL. Table 2-3 gives a list of the NCL
run-time error codes associated with each of these conditions.
Table 2-2. System-Defined Condition Names and Error Handlers
Condition Name Meaning
ARITH_ERROR Traps overflow, underflow, and division-by-zero errors that occur when
performing arithmetic operations.
ERROR Indicates a general error condition. NCL terminates the process if the
ON block specifies that no action is to be taken.
FILE_ERROR Traps errors resulting from the use of FILE verbs.
FLUSH_ERROR Traps the FLUSH command.
LABEL_ERROR Traps errors that occur when NCL cannot find a label, the label is found
but is an illegal name, the label is in an illegal position, the label is too
long, and so on.
LOADFAIL_ERROR Indicates a failure to find or load an external NCL procedure or function.
LOOPING_ERROR Traps the case in which the looping protection mechanism has been
triggered.
PANEL_END Traps the case in which NCL detects a request to move one level up in a
hierarchy of panels (the END function).
PANEL_ERROR Traps panel validation processing errors by Panel Services.
PANEL_RETURN Traps the case in which NCL detects a request to move up to the top
level panel in a hierarchy of panels (the RETURN function).
PANEL_SKIP_PMENU Traps the case in which a panel skip string is entered for moving to
another panel through the topmost panel in a hierarchy (a primary
menu).
PSEND_ERROR Traps errors resulting from the use of the PSEND verbs.
RANGE_ERROR Traps errors that occur when data is of the correct type for an operation
but the value is out of range.
STRING_ERROR Traps the case in which NCL attempts to construct a string that exceeds
the internal data limitations of strings.
TYPE_ERROR Traps the case in which NCL cannot convert a value of one type to a
corresponding value of another type.
VARIABLE_ERROR Traps errors that occur when NCL detects an illegal variable name or a
variable name used within an illegal context.
VERB_ERROR Traps errors that occur when a verb detects a logical error condition.