public class LegacyErrorException extends ErrorConditionException
| Modifier and Type | Field and Description |
|---|---|
private ObjectVar<? extends LegacyError> |
error
The thrown
LegacyError. |
private LegacyError |
errorRef
The explicit legacy object being thrown.
|
private boolean |
explicit
Flag indicating this is an explicit thrown exception, by the application code.
|
private boolean |
fromReturn
Flag indicating if this was from a RETURN ERROR statement.
|
| Constructor and Description |
|---|
LegacyErrorException(object<? extends LegacyError> error)
Create a new instance and populate error stack trace.
|
LegacyErrorException(object<? extends LegacyError> error,
boolean fromReturn)
Create a new instance and populate error stack trace.
|
LegacyErrorException(object<? extends LegacyError> error,
boolean fromReturn,
boolean populateStack)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearError(boolean clearRef)
|
LegacyErrorException |
duplicate()
Duplicate this legacy OO error.
|
ObjectVar<? extends LegacyError> |
getError()
Get the
error. |
LegacyError |
getErrorRef()
Get the
getErrorRef(). |
(package private) boolean |
isExplicit()
Check the
explicit flag. |
(package private) boolean |
isFromReturn()
Check the state of the
fromReturn flag. |
(package private) void |
setExplicit(boolean explicit)
Set the
explicit flag. |
(package private) void |
setFromReturn(boolean fromReturn)
Set the
fromReturn flag state. |
getProgressErrorCode, isEndError, isForce, setEndError, setForcefillInStackTrace, getKeyCodeprivate transient ObjectVar<? extends LegacyError> error
LegacyError. Used to hold a reference, so that the object will not be
deleted until this exception is caught.
Do not serialize this field.
private LegacyError errorRef
private boolean fromReturn
private boolean explicit
public LegacyErrorException(object<? extends LegacyError> error)
error - The referenced error.public LegacyErrorException(object<? extends LegacyError> error, boolean fromReturn)
error - The referenced error.fromReturn - Flag indicating if this was from a RETURN ERROR statement.public LegacyErrorException(object<? extends LegacyError> error, boolean fromReturn, boolean populateStack)
error - The referenced error.fromReturn - Flag indicating if this was from a RETURN ERROR statement.populateStack - if true, then call populate error stack trace methodpublic LegacyErrorException duplicate()
errorRef is null, a new AppError
instance will be created. Otherwise, the errorRef will be re-used and its
callstack will be assumed as the server's stack trace.public void clearError(boolean clearRef)
clearRef - When true, clear the errorRef, too.public ObjectVar<? extends LegacyError> getError()
error.public LegacyError getErrorRef()
getErrorRef().boolean isFromReturn()
fromReturn flag.void setFromReturn(boolean fromReturn)
fromReturn flag state.fromReturn - Flag indicating if this exception is from a RETURN ERROR or UNDO, THROW top-level exit.void setExplicit(boolean explicit)
explicit flag.explicit - true if this explicitly thrown by the application, and not FWD runtime.boolean isExplicit()
explicit flag.true if this explicitly thrown by the application, and not FWD runtime.