public interface RemoteErrorData
Modifier and Type | Method and Description |
---|---|
void |
addRecord(java.lang.Object record)
Adds a record to the list of error records.
|
java.lang.Object |
getRecord(int index)
Gets a record from the list of error records.
|
int |
getSize()
Gets the size of the list of error records.
|
boolean |
isErrorFlag()
Queries the state of
error variable. |
boolean |
isPending()
Queries the state of
pendingError variable. |
boolean |
isSilent()
Queries the state of
silent variable. |
boolean |
isSuppressWarnings()
Reflects the value of SESSION:SUPPRESS-WARNINGS attribute.
|
boolean |
isSystemAlertBoxes()
Get the state of SESSION:SYSTEM-ALERT-BOXES attribute.
|
boolean |
mustManageLegacyError()
Check if the top-level block is ROUTINE-LEVEL UNDO, THROW or the current program is
BLOCK-LEVEL UNDO, THROW.
|
boolean |
mustThrowLegacyError()
Check if the current ERROR condition must be raised as a legacy
SysError . |
void |
recordForLegacyThrow(java.lang.String errmsg,
int num)
Record the specified error message and number, to be later thrown as a
LegacyErrorException . |
void |
setPending(boolean value)
Sets the
pendingError variable. |
void |
setSilent(boolean value)
Sets the
silent variable. |
boolean isSilent()
silent
variable.true
if silent mode is enabled, otherwise
false
.void setSilent(boolean value)
silent
variable.value
- The new state of the variable.boolean isErrorFlag()
error
variable.true
if error flag is turned on, otherwise
false
.boolean isPending()
pendingError
variable.true
if pending error flag is turned on, otherwise
false
.void setPending(boolean value)
pendingError
variable.value
- The new state of the variable.int getSize()
void addRecord(java.lang.Object record)
record
- The object to add to the list of error records.java.lang.Object getRecord(int index)
index
- The record index.boolean isSuppressWarnings()
boolean isSystemAlertBoxes()
boolean mustManageLegacyError()
boolean mustThrowLegacyError()
SysError
.void recordForLegacyThrow(java.lang.String errmsg, int num)
LegacyErrorException
.errmsg
- The error message.num
- The error number.