Class StanzaErrorException

    • Constructor Detail

      • StanzaErrorException

        public StanzaErrorException​(Stanza stanza)
        Constructs a stanza exception.
        Parameters:
        stanza - The underlying stanza.
    • Method Detail

      • getStanza

        public final Stanza getStanza()
        Gets the stanza, which includes the error.
        Returns:
        The stanza.
      • getError

        public final StanzaError getError()
        Gets the stanza error, i.e. the <error/> element.
        Returns:
        The stanza error.
        See Also:
        8.3. Stanza Errors