Package org.jivesoftware.smack
Class XMPPException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jivesoftware.smack.XMPPException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
JingleException
,SASLErrorException
,XMPPException.FailedNonzaException
,XMPPException.StreamErrorException
,XMPPException.XMPPErrorException
public abstract class XMPPException extends java.lang.Exception
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:
StanzaError
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XMPPException.FailedNonzaException
static class
XMPPException.StreamErrorException
static class
XMPPException.XMPPErrorException
An exception caused by an XMPP error stanza response on the protocol level.
-
Constructor Summary
Constructors Modifier Constructor Description protected
XMPPException()
Creates a new XMPPException.protected
XMPPException(java.lang.String message)
Creates a new XMPPException with a description of the exception.protected
XMPPException(java.lang.String message, java.lang.Throwable wrappedThrowable)
Creates a new XMPPException with a description of the exception and the Throwable that was the root cause of the exception.
-
-
-
Constructor Detail
-
XMPPException
protected XMPPException()
Creates a new XMPPException.
-
XMPPException
protected XMPPException(java.lang.String message)
Creates a new XMPPException with a description of the exception.- Parameters:
message
- description of the exception.
-
XMPPException
protected XMPPException(java.lang.String message, java.lang.Throwable wrappedThrowable)
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.
-
-