public class ConversionException extends XStreamException implements ErrorWriter
Converter implementations when they cannot convert an object
to/from textual data.
When this exception is thrown it can be passed around to things that accept an
ErrorWriter, allowing them to add diagnostics to the stack trace.ErrorWriter,
Serialized Form| Constructor and Description |
|---|
ConversionException(String msg) |
ConversionException(String msg,
Throwable cause) |
ConversionException(Throwable cause) |
| 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.
|
getCauseaddSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ConversionException(String msg)
public ConversionException(Throwable cause)
public 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 Iterator keys()
ErrorWriterkeys in interface ErrorWriterpublic String getMessage()
getMessage in class Throwablepublic String getShortMessage()
Copyright © 2020 Internet2. All rights reserved.