Asn1ErrorHandler Class Reference

class Asn1ErrorHandler

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.

Public Member Functions
Asn1ErrorHandler ()
~Asn1ErrorHandler ()
int error ( OSCTXT *, ASN1CCB *, int)
EXTRTMETHOD int invoke ( OSCTXT *, ASN1CCB *, int)
EXTRTMETHOD int invoke ( OSCTXT *, OSOCTET *, int, int)
EXTRTMETHOD void setErrorHandler ( OSCTXT *, Asn1ErrorHandler *)

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]

Parameters

OSCTXT * pCtxt
ASN1CCB * pCCB
int stat

invoke(OSCTXT *, OSOCTET *, int, int)

EXTRTMETHOD int invoke ( OSCTXT * pCtxt,
OSOCTET * ptr,
int len,
int stat
) [static]

Parameters

OSCTXT * pCtxt
OSOCTET * ptr
int len
int stat

setErrorHandler(OSCTXT *, Asn1ErrorHandler *)

EXTRTMETHOD void setErrorHandler ( OSCTXT * pCtxt,
Asn1ErrorHandler * pHandler
) [static]

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.