public class ErrorMessage extends Message.Response
Modifier and Type | Class and Description |
---|---|
static class |
ErrorMessage.WrappedException |
Message.Codec<M extends Message>, Message.Direction, Message.Request, Message.Response, Message.Type
Modifier and Type | Field and Description |
---|---|
static Message.Codec<ErrorMessage> |
codec |
TransportException |
error |
tracingId, warnings
connection, forcedProtocolVersion, type
Modifier and Type | Method and Description |
---|---|
static ErrorMessage |
fromException(java.lang.Throwable e) |
static ErrorMessage |
fromException(java.lang.Throwable e,
com.google.common.base.Predicate<java.lang.Throwable> unexpectedExceptionHandler) |
java.lang.String |
toString() |
static java.lang.RuntimeException |
wrap(java.lang.Throwable t,
int streamId) |
getWarnings, setWarnings
attach, connection, encode, getCustomPayload, getSource, getStreamId, setCustomPayload, setSource, setStreamId
public static final Message.Codec<ErrorMessage> codec
public final TransportException error
public static ErrorMessage fromException(java.lang.Throwable e)
public static ErrorMessage fromException(java.lang.Throwable e, com.google.common.base.Predicate<java.lang.Throwable> unexpectedExceptionHandler)
e
- the exceptionunexpectedExceptionHandler
- a callback for handling unexpected exceptions. If null, or if this
returns false, the error is logged at ERROR level via sl4fjpublic static java.lang.RuntimeException wrap(java.lang.Throwable t, int streamId)
Copyright © 2009- The Apache Software Foundation