@Singleton public class JacksonExceptionSerializer extends Object implements ExceptionSerializer
DEFAULT, JACKSON| Constructor and Description |
|---|
JacksonExceptionSerializer(play.Environment environment) |
| 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.
|
@Inject public JacksonExceptionSerializer(play.Environment environment)
public RawExceptionMessage serialize(Throwable exception, java.util.Collection<MessageProtocol> accept)
ExceptionSerializerserialize in interface ExceptionSerializerexception - The exception to serialize.accept - The accepted protocols.public Throwable deserialize(RawExceptionMessage message)
ExceptionSerializerdeserialize in interface ExceptionSerializermessage - The message to deserialize.