public abstract class ErrorWritingException extends XStreamException implements ErrorWriter
ErrorWriter,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
SEPARATOR |
private java.util.Map |
stuff |
| Constructor and Description |
|---|
ErrorWritingException(java.lang.String message)
Constructs a ErrorWritingException.
|
ErrorWritingException(java.lang.String message,
java.lang.Throwable cause)
Constructs a ErrorWritingException.
|
ErrorWritingException(java.lang.Throwable cause)
Constructs a ErrorWritingException.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String name,
java.lang.String information)
Add some information to the error message.
|
private void |
addData(java.lang.String msg,
java.lang.Throwable cause) |
java.lang.String |
get(java.lang.String errorKey)
Retrieve information of the error message.
|
java.lang.String |
getMessage() |
java.lang.String |
getShortMessage() |
java.util.Iterator |
keys()
Retrieve an iterator over all keys of the error message.
|
void |
set(java.lang.String name,
java.lang.String information)
Set some information to the error message.
|
private static final java.lang.String SEPARATOR
private final java.util.Map stuff
public ErrorWritingException(java.lang.String message)
message - the error messagepublic ErrorWritingException(java.lang.Throwable cause)
cause - the causing exceptionpublic ErrorWritingException(java.lang.String message,
java.lang.Throwable cause)
message - the error messagecause - the causing exceptionprivate void addData(java.lang.String msg,
java.lang.Throwable cause)
public java.lang.String get(java.lang.String errorKey)
ErrorWriterget in interface ErrorWritererrorKey - the key of the messagepublic void add(java.lang.String name,
java.lang.String information)
ErrorWriteradd in interface ErrorWritername - something to identify the type of information (e.g. 'XPath').information - detail of the message (e.g. '/blah/moo[3]'public void set(java.lang.String name,
java.lang.String information)
ErrorWriterset in interface ErrorWritername - something to identify the type of information (e.g. 'XPath').information - detail of the message (e.g. '/blah/moo[3]'public java.util.Iterator keys()
ErrorWriterkeys in interface ErrorWriterpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getShortMessage()