Class ErrorMessage
java.lang.Object
org.apache.cassandra.transport.Message
org.apache.cassandra.transport.Message.Response
org.apache.cassandra.transport.messages.ErrorMessage
Message to indicate an error to the client.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.cassandra.transport.Message
Message.Codec<M extends Message>, Message.Direction, Message.Request, Message.Response, Message.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Message.Codec<ErrorMessage>final TransportExceptionFields inherited from class org.apache.cassandra.transport.Message.Response
tracingId, warningsFields inherited from class org.apache.cassandra.transport.Message
connection, forcedProtocolVersion, type -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessagestatic ErrorMessagefromException(Throwable e, com.google.common.base.Predicate<Throwable> unexpectedExceptionHandler) toString()static RuntimeExceptionMethods inherited from class org.apache.cassandra.transport.Message.Response
getWarnings, setWarningsMethods inherited from class org.apache.cassandra.transport.Message
attach, connection, encode, getCustomPayload, getSource, getStreamId, setCustomPayload, setSource, setStreamId
-
Field Details
-
codec
-
error
-
-
Method Details
-
fromException
-
fromException
public static ErrorMessage fromException(Throwable e, com.google.common.base.Predicate<Throwable> unexpectedExceptionHandler) - Parameters:
e- the exceptionunexpectedExceptionHandler- a callback for handling unexpected exceptions. If null, or if this returns false, the error is logged at ERROR level via sl4fj
-
toString
-
wrap
-