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
andExceptionThrowingCallback
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handleUnparsableStanza(UnparseableStanza stanzaData)
Called when parsing a stanza caused an exception.
-
-
-
Method Detail
-
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.
-
-