Interface ParsingExceptionCallback

All Known Implementing Classes:
ExceptionLoggingCallback, ExceptionThrowingCallback, ExceptionThrowingCallbackWithHint

public interface ParsingExceptionCallback
Interface to receive parsing exceptions.

If this class is used as callback, then Smack will silently ignore the stanza that caused the parsing exception and place the parser after the faulty stanza.

Smack provides 2 predefined ParsingExceptionCallback's: ExceptionLoggingCallback and ExceptionThrowingCallback.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when parsing a stanza caused an exception.
  • Method Details

    • handleUnparsableStanza

      void handleUnparsableStanza(UnparseableStanza stanzaData) throws IOException
      Called when parsing a stanza caused an exception.
      Parameters:
      stanzaData - the raw stanza data that caused the exception
      Throws:
      IOException - if an I/O error occurred.