com.datastax.cassandra.transport.messages
Class ErrorMessage

java.lang.Object
  extended by com.datastax.cassandra.transport.Message
      extended by com.datastax.cassandra.transport.Message.Response
          extended by com.datastax.cassandra.transport.messages.ErrorMessage

public class ErrorMessage
extends Message.Response

Message to indicate an error to the client.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.datastax.cassandra.transport.Message
Message.Codec<M extends Message>, Message.Direction, Message.ProtocolDecoder, Message.ProtocolEncoder, Message.Request, Message.Response, Message.Type
 
Field Summary
static Message.Codec<ErrorMessage> codec
           
 org.apache.cassandra.exceptions.TransportException error
           
 
Fields inherited from class com.datastax.cassandra.transport.Message.Response
tracingId
 
Fields inherited from class com.datastax.cassandra.transport.Message
connection, type
 
Method Summary
 org.jboss.netty.buffer.ChannelBuffer encode()
           
static ErrorMessage fromException(Throwable e)
           
 String toString()
           
static RuntimeException wrap(Throwable t, int streamId)
           
 
Methods inherited from class com.datastax.cassandra.transport.Message.Response
getTracingId, setTracingId
 
Methods inherited from class com.datastax.cassandra.transport.Message
attach, connection, getStreamId, setStreamId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

codec

public static final Message.Codec<ErrorMessage> codec

error

public final org.apache.cassandra.exceptions.TransportException error
Method Detail

fromException

public static ErrorMessage fromException(Throwable e)

encode

public org.jboss.netty.buffer.ChannelBuffer encode()
Specified by:
encode in class Message

toString

public String toString()
Overrides:
toString in class Object

wrap

public static RuntimeException wrap(Throwable t,
                                    int streamId)


Copyright © 2013. All Rights Reserved.