public class ErrorConditionException extends ConditionException
Modifier and Type | Field and Description |
---|---|
private boolean |
end_error
true if the cause of this error was the END-ERROR key. |
private int |
progressErrorCode
Error code used in Progress 4GL.
|
Constructor and Description |
---|
ErrorConditionException(int progressErrorCode,
java.lang.String message)
Constructor which accepts an error message and an error code.
|
ErrorConditionException(int progressErrorCode,
java.lang.String message,
NumberedException cause)
Constructor which accepts an error message, error code and root cause.
|
ErrorConditionException(java.lang.String message)
Constructor which accepts an error message.
|
ErrorConditionException(java.lang.String message,
boolean end_error)
Constructor which accepts an error message.
|
ErrorConditionException(java.lang.String message,
int keycode)
Constructor which accepts an error message and the key code for the key
press that caused this condition.
|
ErrorConditionException(java.lang.String message,
int keycode,
boolean end_error)
Constructor which accepts an error message and the key code for the key
press that caused this condition.
|
ErrorConditionException(java.lang.String message,
java.lang.Throwable rootCause)
Constructor which accepts an error message and a root cause.
|
ErrorConditionException(java.lang.Throwable rootCause)
Constructor which accepts and wrappers a root cause.
|
Modifier and Type | Method and Description |
---|---|
int |
getProgressErrorCode()
Returns the code (which is used in Progress 4GL) of the error that was
the cause of this condition.
|
boolean |
isEndError()
Detects if the cause of this condition was the END-ERROR key.
|
void |
setEndError(boolean end_error)
Sets the END-ERROR flag for the cause of this condition.
|
fillInStackTrace, getKeyCode
private boolean end_error
true
if the cause of this error was the END-ERROR key.private int progressErrorCode
public ErrorConditionException(java.lang.String message)
message
- Error message.public ErrorConditionException(int progressErrorCode, java.lang.String message)
progressErrorCode
- Error code (which is used in Progress 4GL).message
- Error message.public ErrorConditionException(int progressErrorCode, java.lang.String message, NumberedException cause)
progressErrorCode
- Error code (which is used in Progress 4GL).message
- Error message.cause
- A numbered exception identifying the raised condition.public ErrorConditionException(java.lang.String message, int keycode)
message
- Error message.keycode
- The key code of the key that caused this condition to be
raised.public ErrorConditionException(java.lang.String message, java.lang.Throwable rootCause)
message
- Error message.rootCause
- Exception which has been caught in the course of processing.public ErrorConditionException(java.lang.Throwable rootCause)
rootCause
- Exception which has been caught in the course of processing.public ErrorConditionException(java.lang.String message, boolean end_error)
message
- Error message.end_error
- true
if the cause of this condition was the
END-ERROR key.public ErrorConditionException(java.lang.String message, int keycode, boolean end_error)
message
- Error message.keycode
- The key code of the key that caused this condition to be
raised.end_error
- true
if the cause of this condition was the
END-ERROR key.public boolean isEndError()
true
if the cause of this condition was the
END-ERROR key.public void setEndError(boolean end_error)
end_error
- true
if the cause of this condition was the
END-ERROR key.public int getProgressErrorCode()