public static enum Condition.CONDITION extends java.lang.Enum<Condition.CONDITION>
Enum Constant and Description |
---|
ANYCONDITION
ANYCONDITION can be used only in ON (and REVERT) statements to establish
(and cancel) an ON-unit that will trap any condition, including the
CONDITION condition, that occurs in a block, and that is not trapped
by some other eligible ON-unit in that block.
|
AREA
AREA is raised: (1) When an attempt is made to allocate a based variable
within an area that contains insufficient free storage for the allocation
to be made; (2) When an attempt is made to perform an area assignment
and the target area contains insufficient storage to accommodate the
allocations in the source area.
|
ATTENTION
The ATTENTION condition is raised when the user hits a specific key
combination to interrupt an application.
|
CONDITION
The CONDITION condition is raised by a SIGNAL statement.
|
CONVERSION
The CONVERSION computational condition is raised whenever an invalid
conversion is attempted on character, widechar, or graphic data.
|
ENDFILE
The ENDFILE input/output condition can be raised during an operation by an
attempt to read past the end of the file specified in the GET or READ statement.
|
ENDPAGE
When ENDPAGE is raised, the current line number is one greater than that
specified by the PAGESIZE option (default is 60) so that it is possible to
continue writing on the same page.
|
ERROR
The ERROR condition is the implicit action for many conditions.
|
FINISH
The FINISH condition is raised during execution of a statement that would
terminate the procedures.
|
FIXEDOVERFLOW
The FIXEDOVERFLOW computational condition is raised when the length of
the result of a FIXED DECIMAL arithmetic operation exceeds the maximum
length allowed by the implementation.
|
INVALIDOP
The INVALIDOP computational condition is raised when any of the following
are detected during the evaluation of IEEE floating-point expressions.
|
KEY
The KEY input/output condition is raised when a record with a specified key
cannot be found.
|
NAME
The NAME input/output condition can be raised only during execution of a
data-directed GET statement with the FILE option.
|
OVERFLOW
The OVERFLOW computational condition is raised when the magnitude of a
floating-point number exceeds the maximum allowed.
|
RECORD
The RECORD input/output condition is raised if the specified record is
truncated.
|
SIZE
The SIZE computational condition is raised only when high-order (that is,
leftmost) significant binary or decimal digits are lost in an attempted
assignment to a variable or an intermediate result or in an input/output
operation.
|
SQLEXCEPTION
EPLI Extension: SQLEXCEPTION is raised when a SQL WHENEVER would be triggered.
|
STORAGE
The STORAGE condition allows the program to gain control for the failure of
an ALLOCATE built-in function or ALLOCATE statement that attempted to
allocate BASED or CONTROLLED storage outside of an AREA.
|
STRINGRANGE
The STRINGRANGE program-checkout condition is raised whenever the
values of the arguments to a SUBSTR reference fail to comply with the rules
described for the SUBSTR built-in function.
|
STRINGSIZE
The STRINGSIZE program-checkout condition is raised when you attempt to
assign a string to a target with a shorter maximum length.
|
SUBSCRIPTRANGE
The SUBSCRIPTRANGE program-checkout condition is raised whenever a
subscript is evaluated and found to lie outside its specified bounds.
|
TRANSMIT
The TRANSMIT input/output condition is raised by an uncorrectable
transmission error of a record (or of a block, if records are blocked),
which is an input/output error that could not be corrected during execution.
|
UNDEFINEDFILE
The UNDEFINEDFILE input/output condition is raised whenever an
unsuccessful attempt to open a file is made.
|
UNDERFLOW
The UNDERFLOW computational condition is raised when the magnitude of a
floating-point number is smaller than the minimum allowed.
|
USERDEFINED
A USERDEFINED condition is raised for the corresponding
Condition variable.
|
ZERODIVIDE
The ZERODIVIDE computational condition is raised when an attempt is made
to divide by zero.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
summary()
Return the summary of this CONDITION
|
static Condition.CONDITION |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Condition.CONDITION[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Condition.CONDITION ANYCONDITION
public static final Condition.CONDITION AREA
public static final Condition.CONDITION ATTENTION
public static final Condition.CONDITION CONDITION
public static final Condition.CONDITION CONVERSION
public static final Condition.CONDITION ENDFILE
public static final Condition.CONDITION ENDPAGE
public static final Condition.CONDITION ERROR
public static final Condition.CONDITION FINISH
public static final Condition.CONDITION FIXEDOVERFLOW
public static final Condition.CONDITION INVALIDOP
public static final Condition.CONDITION KEY
public static final Condition.CONDITION NAME
public static final Condition.CONDITION OVERFLOW
public static final Condition.CONDITION RECORD
public static final Condition.CONDITION SIZE
public static final Condition.CONDITION SQLEXCEPTION
public static final Condition.CONDITION STORAGE
public static final Condition.CONDITION STRINGRANGE
public static final Condition.CONDITION STRINGSIZE
public static final Condition.CONDITION SUBSCRIPTRANGE
public static final Condition.CONDITION TRANSMIT
public static final Condition.CONDITION UNDEFINEDFILE
public static final Condition.CONDITION UNDERFLOW
public static final Condition.CONDITION USERDEFINED
public static final Condition.CONDITION ZERODIVIDE
public static Condition.CONDITION[] values()
for (Condition.CONDITION c : Condition.CONDITION.values()) System.out.println(c);
public static Condition.CONDITION valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String summary()