TTrapHandler Class Reference

class TTrapHandler

Abstract class that defines a handler to work with the TRAP mechanism.

Symbian OS provides a trap handler and this class does not normally need to be used or accessed directly by applications and third party code.

Public Member Functions
TTrapHandler ()
IMPORT_C void Leave ( TInt )
IMPORT_C void Trap ()
IMPORT_C void UnTrap ()

Constructor & Destructor Documentation

TTrapHandler()

IMPORT_C TTrapHandler ( )

Default constructor.

Member Functions Documentation

Leave(TInt)

IMPORT_C void Leave ( TInt aValue ) [pure virtual]

Called when a function within a TRAP leaves.

Parameters

TInt aValue The leave value.

Trap()

IMPORT_C void Trap ( ) [pure virtual]

Called when a TRAP is invoked.

UnTrap()

IMPORT_C void UnTrap ( ) [pure virtual]

Called when a function exits a TRAP without leaving.