Class 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
    • 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.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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.