public abstract class ErrorWritingException extends XStreamException implements ErrorWriter
ErrorWriter,
Serialized Form| Constructor and Description |
|---|
ErrorWritingException(String message)
Constructs a ErrorWritingException.
|
ErrorWritingException(String message,
Throwable cause)
Constructs a ErrorWritingException.
|
ErrorWritingException(Throwable cause)
Constructs a ErrorWritingException.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
String information)
Add some information to the error message.
|
String |
get(String errorKey)
Retrieve information of the error message.
|
String |
getMessage() |
String |
getShortMessage() |
Iterator |
keys()
Retrieve an iterator over all keys of the error message.
|
void |
set(String name,
String information)
Set some information to the error message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ErrorWritingException(String message)
message - the error messagepublic ErrorWritingException(Throwable cause)
cause - the causing exceptionpublic String get(String errorKey)
ErrorWriterget in interface ErrorWritererrorKey - the key of the messagepublic void add(String name, 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(String name, 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 Iterator keys()
ErrorWriterkeys in interface ErrorWriterpublic String getMessage()
getMessage in class Throwablepublic String getShortMessage()
Copyright © 2004–2017 XStream. All rights reserved.