Class PresenceException

  • All Implemented Interfaces:
    java.io.Serializable

    public class PresenceException
    extends ProtocolException
    Exception representing a presence-related failure.
    See Also:
    Serialized Form
    • Constructor Detail

      • PresenceException

        public PresenceException​(PresenceError error,
                                 Presence presence)
        Constructor.
        Parameters:
        error - Presence specific error that causes this exception.
        presence - Presence information associated with this exception.
      • PresenceException

        public PresenceException​(PresenceError error,
                                 Presence presence,
                                 int protocolErrorCode,
                                 java.lang.String protocolErrorReason)
        Constructor.
        Parameters:
        error - Presence specific error that causes this exception.
        presence - Presence information associated with this exception.
        protocolErrorCode - Protocol specific error code.
        protocolErrorReason - Protocol specific error reason phrase.
      • PresenceException

        public PresenceException​(PresenceError error,
                                 Presence presence,
                                 int protocolErrorCode,
                                 java.lang.String protocolErrorReason,
                                 int protocolWarningCode,
                                 java.lang.String protocolWarningReason)
        Constructor.
        Parameters:
        error - Presence specific error that causes this exception.
        presence - Presence information associated with this exception.
        protocolErrorCode - Protocol specific error code.
        protocolErrorReason - Protocol specific error reason phrase.
        protocolWarningCode - Protocol specific warning code.
        protocolWarningReason - Protocol specific warning reason phrase.
      • PresenceException

        public PresenceException​(java.lang.String detailMessage,
                                 PresenceError error,
                                 Presence presence,
                                 int protocolResponseCode,
                                 java.lang.String protocolReason,
                                 int protocolWarningCode,
                                 java.lang.String protocolWarningReason)
        Constructor.
        Parameters:
        detailMessage - Message representing the details of the exception.
        error - Presence specific error that causes this exception.
        presence - Presence information associated with this exception.
        protocolResponseCode - Protocol specific response code.
        protocolReason - Protocol specific reason phrase.
        protocolWarningCode - Protocol specific warning code.
        protocolWarningReason - Protocol specific warning reason phrase.
    • Method Detail

      • getError

        public PresenceError getError()
        Returns the error code.
        Returns:
        PresenceError representing the reason for the failure.
      • getPresence

        public Presence getPresence()
        Returns the presence object associated with this exception, if any.
        Returns:
        Presence object associated with this exception.