Collect (parser) Exceptions and unparseable stanzas. Provide a callback method so that the user is notified about them if he wants to
Description
We currently catch some exceptions, typically parsing related ones, and simply log them, sometimes with printSackTrace(). This is not really desirable:
In case of parser exceptions we don't get a chance to inspect the packet that caused the exception
printStackTrace polluts the log (especially on Android it causes ugly side-effects in the log)
Ideally we would have a callback, where the user can register, that is invoked when such an exception is thrown. Also if there are stanzas without providers received such a callback could be invoked (see ). The user can then decide what do do with it.
So, to sum up:
Provide a callback for parsing exceptions
Provide a callback for stanzas without a provider/handler
Provide a callback instead of calling printStackTrace()
We currently catch some exceptions, typically parsing related ones, and simply log them, sometimes with printSackTrace(). This is not really desirable:
In case of parser exceptions we don't get a chance to inspect the packet that caused the exception
printStackTrace polluts the log (especially on Android it causes ugly side-effects in the log)
Ideally we would have a callback, where the user can register, that is invoked when such an exception is thrown. Also if there are stanzas without providers received such a callback could be invoked (see ). The user can then decide what do do with it.
So, to sum up:
Provide a callback for parsing exceptions
Provide a callback for stanzas without a provider/handler
Provide a callback instead of calling printStackTrace()
References
smack@github issue 20