Package org.jivesoftware.smack
Class XMPPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jivesoftware.smack.XMPPException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SASLErrorException,XMPPException.FailedNonzaException,XMPPException.StreamErrorException,XMPPException.XMPPErrorException
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.
When a stream error occurred, the server will send a stream error to the client before closing the connection. Stream errors are unrecoverable errors. When a stream error is sent to the client an XMPPException will be thrown containing the StreamError sent by the server.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classAn exception caused by an XMPP error stanza response on the protocol level. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new XMPPException.protectedXMPPException(String message) Creates a new XMPPException with a description of the exception.protectedXMPPException(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. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
XMPPException
protected XMPPException()Creates a new XMPPException. -
XMPPException
Creates a new XMPPException with a description of the exception.- Parameters:
message- description of the exception.
-
XMPPException
Creates a new XMPPException with a description of the exception and the Throwable that was the root cause of the exception.- Parameters:
message- a description of the exception.wrappedThrowable- the root cause of the exception.
-