public interface ParsingExceptionCallback
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
.
Modifier and Type | Method and Description |
---|---|
void |
handleUnparsableStanza(UnparseableStanza stanzaData)
Called when parsing a stanza caused an exception.
|
void handleUnparsableStanza(UnparseableStanza stanzaData) throws java.lang.Exception
stanzaData
- the raw stanza data that caused the exceptionjava.lang.Exception