public class SerializeException extends FormattedException
| Constructor and Description |
|---|
SerializeException(SerializerSession session,
Exception causedBy)
Constructor.
|
SerializeException(SerializerSession session,
String message,
Object... args)
Constructor.
|
SerializeException(String message,
Object... args)
Constructor.
|
SerializeException(Throwable causedBy)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static SerializeException |
create(Throwable e)
Creator method.
|
SerializeException |
getRootCause()
Returns the highest-level
|
SerializeException |
initCause(Throwable cause)
Sets the inner cause for this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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(Throwable causedBy)
causedBy - The inner exception.public static SerializeException create(Throwable e)
If the throwable is already a SerializeException, we simply return that exception as-is.
If the throwable is an InvocationTargetException, we unwrap the thrown exception.
Otherwise we create a new SerializeException.
e - The exception being wrapped or unwrapped.SerializeException.public SerializeException getRootCause()
public SerializeException initCause(Throwable cause)
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.