Class XMPPException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jivesoftware.smack.XMPPException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JingleException, SASLErrorException, XMPPException.FailedNonzaException, XMPPException.StreamErrorException, XMPPException.XMPPErrorException

public abstract class XMPPException extends 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:
  • Constructor Details

    • XMPPException

      protected XMPPException()
      Creates a new XMPPException.
    • XMPPException

      protected XMPPException(String message)
      Creates a new XMPPException with a description of the exception.
      Parameters:
      message - description of the exception.
    • XMPPException

      protected 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.
      Parameters:
      message - a description of the exception.
      wrappedThrowable - the root cause of the exception.