CSE2305 - Object-Oriented Software Engineering
Week 11

Topic 21: C++ Exceptions


Synopsis


Run-time errors


What should happen?


Why doesn't that happen?


Error handling schemes


Exceptions¤


Setting up a try block


Throwing exceptions¤


Catching exceptions¤


Catching classes¤ of exceptions¤


Uncaught exceptions¤


Example: new


Example: Array class¤


Reading


This material is part of the CSE2305 - Object-Oriented Software Engineering course.
Copyright © Jon McCormack & Damian Conway, 1998–2005. All rights reserved.