private static class ErrorManager.ServerErrorDataAccessor extends java.lang.Object implements RemoteErrorData
| Modifier | Constructor and Description |
|---|---|
private |
ServerErrorDataAccessor() |
| 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.
|
java.lang.String |
getSuppressWarningsList()
Reflects the value of SESSION:SUPPRESS-WARNINGS-LIST attribute.
|
void |
handleSoapFault(java.lang.String operationName,
java.lang.String faultMsg,
java.lang.String faultActor,
java.lang.String faultCode,
java.lang.String faultString,
java.lang.String faultDetailXML)
Handles a SOAP fault.
|
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. |
protected void |
setSilent(ErrorManager.WorkArea wa,
boolean value)
Sets the
silent variable. |
void |
throwErrorConditionException(int num,
java.lang.String errmsg)
Throw the specified error message and number.
|
void |
writeLog(java.lang.String msg,
boolean logCallStack,
long threadId)
Writes a log record.
|
public boolean isSilent()
silent variable.isSilent in interface RemoteErrorDatatrue if silent mode is enabled, otherwise
false.public boolean isErrorFlag()
error variable.isErrorFlag in interface RemoteErrorDatatrue if error flag is turned on, otherwise
false.public void setPending(boolean value)
pendingError variable.setPending in interface RemoteErrorDatavalue - The new state of the variable.public int getSize()
getSize in interface RemoteErrorDatapublic void addRecord(java.lang.Object record)
addRecord in interface RemoteErrorDatarecord - The object to add to the list of error records.public java.lang.Object getRecord(int index)
getRecord in interface RemoteErrorDataindex - The record index.public boolean isPending()
pendingError variable.isPending in interface RemoteErrorDatatrue if pending error flag is turned on, otherwise
false.public boolean isSuppressWarnings()
isSuppressWarnings in interface RemoteErrorDatapublic java.lang.String getSuppressWarningsList()
getSuppressWarningsList in interface RemoteErrorDatapublic boolean isSystemAlertBoxes()
isSystemAlertBoxes in interface RemoteErrorDatapublic void setSilent(boolean value)
silent variable.setSilent in interface RemoteErrorDatavalue - The new state of the variable.protected void setSilent(ErrorManager.WorkArea wa, boolean value)
silent variable.wa - Context local data storage.value - The new state of the variable.public boolean mustManageLegacyError()
mustManageLegacyError in interface RemoteErrorDatapublic boolean mustThrowLegacyError()
SysError.mustThrowLegacyError in interface RemoteErrorDatapublic void recordForLegacyThrow(java.lang.String errmsg,
int num)
LegacyErrorException.recordForLegacyThrow in interface RemoteErrorDataerrmsg - The error message.num - The error number.public void throwErrorConditionException(int num,
java.lang.String errmsg)
throwErrorConditionException in interface RemoteErrorDatanum - The error number.errmsg - The error message.public void writeLog(java.lang.String msg,
boolean logCallStack,
long threadId)
writeLog in interface RemoteErrorDatamsg - The log message.logCallStack - Flag to indicate if call stack should be included in log.threadId - The id of the thread recording the error message.public void handleSoapFault(java.lang.String operationName,
java.lang.String faultMsg,
java.lang.String faultActor,
java.lang.String faultCode,
java.lang.String faultString,
java.lang.String faultDetailXML)
handleSoapFault in interface RemoteErrorDataoperationName - The operation that failed.faultMsg - The fault error msg.faultActor - The fault actor.faultCode - The fault code.faultString - The fault string.faultDetailXML - The fault details as xml.