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 voidLeave(TInt)
IMPORT_C voidTrap()
IMPORT_C voidUnTrap()

Constructor & Destructor Documentation

TTrapHandler()

IMPORT_CTTrapHandler()

Default constructor.

Member Functions Documentation

Leave(TInt)

IMPORT_C voidLeave(TIntaValue)[pure virtual]

Called when a function within a TRAP leaves.

Parameters

TInt aValueThe leave value.

Trap()

IMPORT_C voidTrap()[pure virtual]

Called when a TRAP is invoked.

UnTrap()

IMPORT_C voidUnTrap()[pure virtual]

Called when a function exits a TRAP without leaving.