org.embedchat.protocol.message.server
Class ErrorMessage

java.lang.Object
  extended by org.embedchat.protocol.message.AbstractMessage
      extended by org.embedchat.protocol.message.server.ErrorMessage
All Implemented Interfaces:
java.io.Serializable

public class ErrorMessage
extends AbstractMessage

Error message format:

commandId - short bodyLength - uint messageCode - uint errorMessageString - utf

Author:
koba
See Also:
Serialized Form

Field Summary
static int BAD_REQUEST_ERROR
          Server return bad request string, if unparseble request is found
static int LOGIC_ERROR
          Server return login error, if this command not accepteble on this moment As example, if client try to send TextMessage without login
static int SERVER_ERROR
          Internal server error
 
Constructor Summary
ErrorMessage()
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.String getErrorMessageString()
           
 int getMessageBodyLength()
           
 int getMessageCode()
           
 int hashCode()
           
 void setErrorMessageString(java.lang.String errorMessageString)
           
 void setMessageCode(int messageCode)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BAD_REQUEST_ERROR

public static final int BAD_REQUEST_ERROR
Server return bad request string, if unparseble request is found

See Also:
Constant Field Values

LOGIC_ERROR

public static final int LOGIC_ERROR
Server return login error, if this command not accepteble on this moment As example, if client try to send TextMessage without login

See Also:
Constant Field Values

SERVER_ERROR

public static final int SERVER_ERROR
Internal server error

See Also:
Constant Field Values
Constructor Detail

ErrorMessage

public ErrorMessage()
Method Detail

getMessageCode

public int getMessageCode()

setMessageCode

public void setMessageCode(int messageCode)

getErrorMessageString

public java.lang.String getErrorMessageString()

setErrorMessageString

public void setErrorMessageString(java.lang.String errorMessageString)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getMessageBodyLength

public int getMessageBodyLength()
Specified by:
getMessageBodyLength in class AbstractMessage

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright 2006-2006 embedchat.org. All Rights Reserved.