Class CopyFailMessage (0.6.0)

public class CopyFailMessage extends ControlMessage

Normally used to signal a copy command failed. Spanner does not currently support copies, so send will throw a descriptive error to be sent to the user. Note that we do parse this in order for this to be future proof, and to ensure the input stream is flushed of the command (in order to continue receiving properly)

Inheritance

java.lang.Object > WireMessage > ControlMessage > CopyFailMessage

Static Fields

IDENTIFIER

protected static final char IDENTIFIER
Field Value
TypeDescription
char

Constructors

CopyFailMessage(ConnectionHandler connection)

public CopyFailMessage(ConnectionHandler connection)
Parameter
NameDescription
connectionConnectionHandler

Methods

getErrorMessage()

public String getErrorMessage()
Returns
TypeDescription
String

getIdentifier()

protected String getIdentifier()

Used for logging.

Returns
TypeDescription
String
Overrides

getMessageName()

protected String getMessageName()

Used for logging.

Returns
TypeDescription
String
Overrides

getPayloadString()

protected String getPayloadString()

Used for logging.

Returns
TypeDescription
String
Overrides

sendPayload()

protected void sendPayload()

Override this method to include post-processing and metadata in the sending process. Template method for send.

Overrides Exceptions
TypeDescription
Exception