Exception handling

Introduction

Introduction

c++ exception handling (not in c)

try

catch

throw

uses Resource acquisition is initialization (RAII) to implement?

for object to be initialised, it must have resources allocated.

all stack objects are destroyed (stack unwinding) if an exception is found