|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.ceryle.util.ProcessException
public class ProcessException
An general class for exceptions thrown during processing.
Exception,
Serialized Form| Field Summary | |
|---|---|
protected Exception |
exception
The embedded Exception if tunnelling. |
protected boolean |
isMessageId
Indicates if message is a
org.ceryle.util.MessageId string or actual message content. |
protected int |
line
An int containing an optional line number parameter (-1 if unused). |
protected String |
messageId
A String containing an optional first message parameter. |
protected String |
param1
A String containing an optional first message parameter. |
protected String |
param2
A String containing an optional second message parameter. |
protected String |
param3
A String containing an optional third message parameter. |
| Constructor Summary | |
|---|---|
ProcessException(Exception exception)
Constructor for ProcessException tunnelling the original Exception. |
|
ProcessException(int line,
String messageId)
Constructor for ProcessException including location information. |
|
ProcessException(int line,
String messageId,
String param1)
Constructor for ProcessException with a MessageId and one parameter, including location information. |
|
ProcessException(int line,
String messageId,
String param1,
String param2)
Constructor for ProcessException with a MessageId and two parameters, including location information. |
|
ProcessException(String messageId)
Constructor for ProcessException. |
|
ProcessException(String messageId,
Exception exception)
Constructor for ProcessException provided a message identifier, tunnelling the original Exception. |
|
ProcessException(String messageId,
String param1)
Constructor for ProcessException with a message ID and one parameter. |
|
ProcessException(String messageId,
String param1,
String param2)
Constructor for ProcessException with a message ID and two parameters. |
|
ProcessException(String messageId,
String param1,
String param2,
String param3)
Constructor for ProcessException with a MessageId and three parameters. |
|
| Method Summary | |
|---|---|
Exception |
getException()
Returns the embedded exception, if any. |
int |
getLine()
Returns the line number of the exception, -1 if it has not been set. |
String |
getMessage()
Returns a description of the error. |
String |
getMessageId()
If the message was expressed as a MessageId, return the original messageId string (e.g. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean isMessageId
message is a
org.ceryle.util.MessageId string or actual message content.
protected String messageId
protected String param1
protected String param2
protected String param3
protected int line
protected Exception exception
| Constructor Detail |
|---|
public ProcessException(String messageId)
messageId - The unique message identifier.public ProcessException(Exception exception)
exception - The original Exception.Utilities
public ProcessException(String messageId,
Exception exception)
messageId - The unique message identifier.exception - The original Exception.Utilities
public ProcessException(String messageId,
String param1)
messageId - The unique message identifier.param1 - A parameter string to be inserted at %1.Localizer
public ProcessException(String messageId,
String param1,
String param2)
messageId - The unique message identifier.param1 - A parameter string to be inserted at %1.param2 - A parameter string to be inserted at %2.Utilities
public ProcessException(String messageId,
String param1,
String param2,
String param3)
messageId - The unique message identifier.param1 - A parameter string to be inserted at %1.param2 - A parameter string to be inserted at %2.param3 - A parameter string to be inserted at %3.MessageId,
Utilities
public ProcessException(int line,
String messageId)
line - The line on which the error seems to have occurred.messageId - The unique message identifier.MessageId,
Utilities
public ProcessException(int line,
String messageId,
String param1)
line - The line on which the error seems to have occurred.messageId - The unique message identifier.param1 - A parameter string to be inserted at %1.MessageId,
Utilities
public ProcessException(int line,
String messageId,
String param1,
String param2)
line - The line on which the error seems to have occurred.messageId - The unique message identifier.param1 - A parameter string to be inserted at %1.param2 - A parameter string to be inserted at %2.MessageId,
Utilities| Method Detail |
|---|
public int getLine()
public Exception getException()
public String getMessageId()
public String getMessage()
Utilities.localize().
getMessage in class Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||