public final class SerializeException extends FormattedException
Constructor and Description |
---|
SerializeException(Exception causedBy)
Constructor.
|
SerializeException(SerializerSession session,
Exception causedBy)
Constructor.
|
SerializeException(SerializerSession session,
String message,
Object... args)
Constructor.
|
SerializeException(String message,
Object... args)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SerializeException |
getRootCause()
Returns the highest-level
ParseException in the stack trace. |
SerializeException |
initCause(Throwable cause)
Sets the inner cause for this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SerializeException(SerializerSession session, String message, Object... args)
session
- The serializer session to extract information from.message
- The exception message containing MessageFormat
-style arguments.args
- Optional MessageFormat
-style arguments.public SerializeException(String message, Object... args)
message
- The exception message containing MessageFormat
-style arguments.args
- Optional MessageFormat
-style arguments.public SerializeException(SerializerSession session, Exception causedBy)
session
- The serializer session to extract information from.causedBy
- The inner exception.public SerializeException(Exception causedBy)
causedBy
- The inner exception.public SerializeException getRootCause()
ParseException
in the stack trace.
Useful for JUnit testing of error conditions.public SerializeException initCause(Throwable cause)
Copyright © 2018 Apache. All rights reserved.