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 |
fromReturn
Flag indicating if this was from a RETURN ERROR statement.
|
Constructor and Description |
---|
LegacyErrorException(object<? extends LegacyError> error)
Create a new instance.
|
LegacyErrorException(object<? extends LegacyError> error,
boolean fromReturn)
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 |
isFromReturn()
Check the state of the
fromReturn flag. |
getProgressErrorCode, isEndError, isForce, setEndError, setForce
fillInStackTrace, getKeyCode
private 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
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 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.