org.apache.cassandra.transport.messages
Class ErrorMessage
java.lang.Object
org.apache.cassandra.transport.Message
org.apache.cassandra.transport.Message.Response
org.apache.cassandra.transport.messages.ErrorMessage
public class ErrorMessage
- extends Message.Response
Message to indicate an error to the client.
Method Summary |
org.jboss.netty.buffer.ChannelBuffer |
encode()
|
static ErrorMessage |
fromException(java.lang.Throwable e)
|
java.lang.String |
toString()
|
static java.lang.RuntimeException |
wrap(java.lang.Throwable t,
int streamId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
codec
public static final Message.Codec<ErrorMessage> codec
error
public final TransportException error
fromException
public static ErrorMessage fromException(java.lang.Throwable e)
encode
public org.jboss.netty.buffer.ChannelBuffer encode()
- Specified by:
encode
in class Message
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
wrap
public static java.lang.RuntimeException wrap(java.lang.Throwable t,
int streamId)
Copyright © 2013 The Apache Software Foundation