public interface ExceptionSerializer
| Modifier and Type | Field and Description |
|---|---|
static ExceptionSerializer |
DEFAULT
The default serializer factory.
|
static ExceptionSerializer |
JACKSON
The default Jackson exception serializer.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
deserialize(RawExceptionMessage message)
Deserialize an exception message into an exception.
|
RawExceptionMessage |
serialize(Throwable exception,
java.util.Collection<MessageProtocol> accept)
Serialize the given exception to an exception message.
|
static final ExceptionSerializer JACKSON
static final ExceptionSerializer DEFAULT
RawExceptionMessage serialize(Throwable exception, java.util.Collection<MessageProtocol> accept)
exception - The exception to serialize.accept - The accepted protocols.Throwable deserialize(RawExceptionMessage message)
message - The message to deserialize.