org.embedchat.protocol.message.server
Class ErrorMessage
java.lang.Object
org.embedchat.protocol.message.AbstractMessage
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 |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
ErrorMessage
public ErrorMessage()
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.