|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.jivesoftware.smack.XMPPException
public class XMPPException
A generic exception that is thrown when an error occurs performing an XMPP operation. XMPP servers can respond to error conditions with an error code and textual description of the problem, which are encapsulated in the XMPPError class. When appropriate, an XMPPError instance is attached instances of this exception.
XMPPError
,
Serialized FormConstructor Summary | |
---|---|
XMPPException()
Creates a new XMPPException. |
|
XMPPException(String message)
Creates a new XMPPException with a description of the exception. |
|
XMPPException(String message,
Throwable wrappedThrowable)
Creates a new XMPPException with a description of the exception and the Throwable that was the root cause of the exception. |
|
XMPPException(String message,
XMPPError error)
Creates a new XMPPException with a description of the exception and the XMPPException that was the root cause of the exception. |
|
XMPPException(String message,
XMPPError error,
Throwable wrappedThrowable)
Creates a new XMPPException with a description of the exception, an XMPPError, and the Throwable that was the root cause of the exception. |
|
XMPPException(Throwable wrappedThrowable)
Creates a new XMPPException with the Throwable that was the root cause of the exception. |
|
XMPPException(XMPPError error)
Cretaes a new XMPPException with the XMPPError that was the root case of the exception. |
Method Summary | |
---|---|
String |
getMessage()
|
Throwable |
getWrappedThrowable()
Returns the Throwable asscociated with this exception, or null if there isn't one. |
XMPPError |
getXMPPError()
Returns the XMPPError asscociated with this exception, or null if there isn't one. |
void |
printStackTrace()
|
void |
printStackTrace(PrintStream out)
|
void |
printStackTrace(PrintWriter out)
|
String |
toString()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XMPPException()
public XMPPException(String message)
message
- description of the exception.public XMPPException(Throwable wrappedThrowable)
wrappedThrowable
- the root cause of the exception.public XMPPException(XMPPError error)
error
- the root cause of the exception.public XMPPException(String message, Throwable wrappedThrowable)
message
- a description of the exception.wrappedThrowable
- the root cause of the exception.public XMPPException(String message, XMPPError error, Throwable wrappedThrowable)
message
- a description of the exception.error
- the root cause of the exception.wrappedThrowable
- the root cause of the exception.public XMPPException(String message, XMPPError error)
message
- a description of the exception.error
- the root cause of the exception.Method Detail |
---|
public XMPPError getXMPPError()
public Throwable getWrappedThrowable()
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream out)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter out)
printStackTrace
in class Throwable
public String getMessage()
getMessage
in class Throwable
public String toString()
toString
in class Throwable
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |