|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smack.parsing.ParsingExceptionCallback
public abstract class ParsingExceptionCallback
Base class 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.
Subclasses may or may not override certain methods of this class. Each of these methods will receive the exception
that caused the parsing error and an instance of an Unparsed Packet type. The latter can be used to inspect the
stanza that caused the parsing error by using the getContent() (for example UnparsedIQ#getContent()
)
method.
Smack provides 2 predefined ParsingExceptionCallback's: ExceptionLoggingCallback
and ExceptionThrowingCallback
.
Constructor Summary | |
---|---|
ParsingExceptionCallback()
|
Method Summary | |
---|---|
void |
handleUnparsablePacket(UnparsablePacket stanzaData)
Called when parsing an message stanza caused an exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParsingExceptionCallback()
Method Detail |
---|
public void handleUnparsablePacket(UnparsablePacket stanzaData) throws java.lang.Exception
stanzaData
- the raw message stanza data that caused the exception
java.lang.Exception
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |