public abstract class ErrorWritingException extends XStreamException implements ErrorWriter
ErrorWriter
,
Serialized FormConstructor 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)
ErrorWriter
get
in interface ErrorWriter
errorKey
- the key of the messagepublic void add(java.lang.String name, java.lang.String information)
ErrorWriter
add
in interface ErrorWriter
name
- 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)
ErrorWriter
set
in interface ErrorWriter
name
- 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()
ErrorWriter
keys
in interface ErrorWriter
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getShortMessage()
Copyright © 2004–2022 XStream. All rights reserved.