Asn1ErrorHandler Class Reference
Error handler base class. This is the base class from which user-defined error classes are derived. These classes can be used to provide fault-tolerance when parsing a message. The normal decoder behavior is to stop decoding when it encounters an error. An error handler can be used to ignore or take corrective action that will allow the decoding process to continue.
Constructor & Destructor Documentation
Asn1ErrorHandler()
Asn1ErrorHandler
|
(
|
)
|
[inline]
|
~Asn1ErrorHandler()
~Asn1ErrorHandler
|
(
|
)
|
[inline, virtual]
|
Member Functions Documentation
error(OSCTXT *, ASN1CCB *, int)
int
|
error
|
(
|
OSCTXT
*
|
pCtxt,
|
|
ASN1CCB
*
|
pCCB,
|
|
int
|
stat
|
|
)
|
[pure virtual]
|
The error handler callback method. This is the method that the user must override to provide customized error handling.
Parameters
OSCTXT
* pCtxt
|
- Pointer to a context block structure.
|
ASN1CCB
* pCCB
|
- Pointer to a context control block structure.
|
int stat
|
- The error status that caused the handler to be invoked.
|
invoke(OSCTXT *, ASN1CCB *, int)
EXTRTMETHOD int
|
invoke
|
(
|
OSCTXT
*
|
pCtxt,
|
|
ASN1CCB
*
|
pCCB,
|
|
int
|
stat
|
|
)
|
[static]
|
invoke(OSCTXT *, OSOCTET *, int, int)
EXTRTMETHOD int
|
invoke
|
(
|
OSCTXT
*
|
pCtxt,
|
|
OSOCTET
*
|
ptr,
|
|
int
|
len,
|
|
int
|
stat
|
|
)
|
[static]
|
setErrorHandler(OSCTXT *, Asn1ErrorHandler *)
This static method is called to set the error handler within the context structure. Note that unlike event handlers, only a single error handling object can be specified. This must be called by the user to specify the error handling object prior to execution of the main decode function..
Parameters
OSCTXT
* pCtxt
|
- Pointer to a context block structure.
|
Asn1ErrorHandler
* pHandler
|
- Pointer to error handler object to register.
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.