|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacCommand
SnacError
A SNAC command representing a SNAC error sent in any supported SNAC family.
SNAC error commands are normally the command in a family with the command
subtype 0x01
.
Field Summary | |
static int |
CMD_ERROR
The SNAC command subtype of SNAC errors. |
static int |
CODE_BROKEN_SNAC_DATA
An error code indicating that a SNAC was malformatted. |
static int |
CODE_IN_LOCAL_PERMIT_DENY
An error code indicating that the client attempted to send a message to someone you have blocked. |
static int |
CODE_INSUFFICIENT_RIGHTS
An error code indicating that the user does not have the necessary permissions to perform an action. |
static int |
CODE_INVALID_SNAC
An error code indicating that an invalid SNAC command was sent. |
static int |
CODE_LIST_OVERFLOW
An error code meaning something. |
static int |
CODE_NO_AOL
An error code indicating that a given action cannot be performed while on AOL. |
static int |
CODE_NO_MATCH
An error code meaning something. |
static int |
CODE_NOT_SUPPORTED_BY_CLIENT
An error code indicating that a given action, such as sending a file to a user, is not supported by that user. |
static int |
CODE_NOT_SUPPORTED_BY_HOST
An error code indicating that a given action is not supported by the server. |
static int |
CODE_OBSOLETE_SNAC
An error code indicating that a SNAC command is no longer supported. |
static int |
CODE_QUEUE_FULL
An error code meaning something. |
static int |
CODE_RECEIVER_WARNING_LEVEL
An error code indicating that you cannot send a message to a user because his or her warning level is too high. |
static int |
CODE_REFUSED_BY_CLIENT
An error code indicating that a message or request was rejected by the client to which it was sent. |
static int |
CODE_REPLY_TOO_LARGE
An error code indicating that something is too large. |
static int |
CODE_REQUEST_AMBIGUOUS
An error code meaning something. |
static int |
CODE_REQUEST_DENIED
An error code indicating that some request was denied. |
static int |
CODE_RESPONSES_LOST
An error code indicating something. |
static int |
CODE_SENDER_WARNING_LEVEL
An error code indicating that you cannot send a message to a user because your warning level is too high. |
static int |
CODE_SERVICE_UNAVAILABLE
An error code indicating that a SNAC family service is "unavailable." |
static int |
CODE_SERVICE_UNDEFINED
An error code indicating that a SNAC family service does not exist. |
static int |
CODE_TOO_FAST_TO_CLIENT
An error code indicating that you sent commands too close together for the receiving user to receive them. |
static int |
CODE_TOO_FAST_TO_HOST
An error code indicating that you sent commands too close together. |
static int |
CODE_USER_TEMP_UNAVAILABLE
An error code indicating that a user is temporarily unavailable. |
static int |
CODE_USER_UNAVAILABLE
An error code indicating that a user is not "available," which may mean the user has blocked you or that he or she is offline. |
Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
Constructor Summary | |
|
SnacError(int family,
int errorCode)
Creates a new SNAC error command in the given SNAC family and with the given error code. |
protected |
SnacError(SnacPacket packet)
Generates a new SNAC error command from the given incoming SNAC packet. |
Method Summary | |
int |
getErrorCode()
Returns the error code associated with this error. |
java.lang.String |
toString()
|
void |
writeData(java.io.OutputStream out)
Writes this command's SNAC data block to the given stream. |
Methods inherited from class SnacCommand |
getCommand, getFamily, getFlag1, getFlag2 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CODE_INVALID_SNAC
public static final int CODE_TOO_FAST_TO_HOST
public static final int CODE_TOO_FAST_TO_CLIENT
public static final int CODE_USER_UNAVAILABLE
CODE_IN_LOCAL_PERMIT_DENY
does.
public static final int CODE_SERVICE_UNAVAILABLE
public static final int CODE_SERVICE_UNDEFINED
public static final int CODE_OBSOLETE_SNAC
public static final int CODE_NOT_SUPPORTED_BY_HOST
public static final int CODE_NOT_SUPPORTED_BY_CLIENT
public static final int CODE_REFUSED_BY_CLIENT
public static final int CODE_REPLY_TOO_LARGE
public static final int CODE_RESPONSES_LOST
public static final int CODE_REQUEST_DENIED
public static final int CODE_BROKEN_SNAC_DATA
public static final int CODE_INSUFFICIENT_RIGHTS
public static final int CODE_IN_LOCAL_PERMIT_DENY
public static final int CODE_SENDER_WARNING_LEVEL
public static final int CODE_RECEIVER_WARNING_LEVEL
public static final int CODE_USER_TEMP_UNAVAILABLE
public static final int CODE_NO_MATCH
public static final int CODE_LIST_OVERFLOW
public static final int CODE_REQUEST_AMBIGUOUS
public static final int CODE_QUEUE_FULL
public static final int CODE_NO_AOL
public static final int CMD_ERROR
Constructor Detail |
protected SnacError(SnacPacket packet)
packet
- an incoming SNAC error packetpublic SnacError(int family, int errorCode)
family
- the SNAC family in which this error occurrederrorCode
- an error code, like CODE_INVALID_SNAC
Method Detail |
public final int getErrorCode()
CODE_
-prefixed constants defined in this class (like
CODE_USER_UNAVAILABLE
).
CODE_INVALID_SNAC
public void writeData(java.io.OutputStream out) throws java.io.IOException
SnacCommand
writeData
in class SnacCommand
out
- the stream to which to write the SNAC data
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |