public class XMPPError
extends java.lang.Object
Code | Description |
302 | Redirect |
400 | Bad Request |
401 | Unauthorized |
402 | Payment Required |
403 | Forbidden |
404 | Not Found |
405 | Not Allowed |
406 | Not Acceptable |
407 | Registration Required |
408 | Request Timeout |
409 | Conflict |
500 | Internal Server XMPPError |
501 | Not Implemented |
502 | Remote Server Error |
503 | Service Unavailable |
504 | Remote Server Timeout |
Constructor and Description |
---|
XMPPError(int code)
Creates a new error with the specified code and no message..
|
XMPPError(int code,
java.lang.String message)
Creates a new error with the specified code and message.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns the error code.
|
java.lang.String |
getMessage()
Returns the message describing the error, or null if there is no message.
|
java.lang.String |
toString() |
java.lang.String |
toXML()
Returns the error as XML.
|
public XMPPError(int code)
code
- the error code.public XMPPError(int code, java.lang.String message)
code
- the error code.message
- a message describing the error.public int getCode()
public java.lang.String getMessage()
public java.lang.String toXML()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003 Jive Software.