public class AtomException extends DataFormatException
Exception thrown when an error occurs during the parsing of data represented in ATOM format.
| Modifier | Constructor and Description |
|---|---|
|
AtomException()
Default constructor.
|
protected |
AtomException(java.lang.String message,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
static AtomException |
cannotParse(java.lang.String value,
java.lang.String type)
Return an exception to be thrown when a value cannot be parsed from ATOM format.
|
static AtomException |
withCause(java.lang.RuntimeException cause)
Return a new exception with the specified root cause.
|
static AtomException |
withMessage(java.lang.String message)
Return a new exception with the specified message text.
|
getSafeMessage, safe, setSafeMessagegetCause, getMessage, setCause, setMessage, toStringprotected AtomException(java.lang.String message,
java.lang.Throwable cause)
public AtomException()
Default constructor.
public static AtomException cannotParse(java.lang.String value, java.lang.String type)
Return an exception to be thrown when a value cannot be parsed from ATOM format.
value - Text of value that could not be parsed.type - Name of expected data type.public static AtomException withCause(java.lang.RuntimeException cause)
Return a new exception with the specified root cause.
cause - Root cause.public static AtomException withMessage(java.lang.String message)
Return a new exception with the specified message text.
message - Message text.