Package org.jivesoftware.smack.parsing
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 TypeMethodDescriptionvoid
handleUnparsableStanza
(UnparseableStanza stanzaData) Called when parsing a stanza caused an exception.
-
Method Details
-
handleUnparsableStanza
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.
-