public void | handleException(ParseException ex, Message sipMessage, java.lang.Class headerClass, java.lang.String headerText, java.lang.String messageText)This gets called from the parser when a parse error is generated.
The handler is supposed to introspect on the error class and
header name to handle the error appropriately. The error can
be handled by :
- 1. Re-throwing an exception and aborting the parse.
- 2. Ignoring the header (attach the unparseable header to
the Message being parsed).
- 3. Re-Parsing the bad header and adding it to the sipMessage
|