public abstract class ErrorWritingException extends XStreamException implements ErrorWriter
ErrorWriter,
Serialized Form| 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.
|
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.
|
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 exceptionpublic 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()
Copyright © 2004–2024 XStream. All rights reserved.