Exception Handling Lecture

To Read

  • Chapter eight of A First Course in Object Oriented Development.

Recording, Part 1

Exception Handling Lecture, Part 1

Content, Part 1

00:00 Content of module four
02:36 Exception basics
03:15 How to represent exceptions in UML
10:55 Checked or unchecked?
13:53 Naming Exception classes
23:56 Exercise in naming and checked/unchecked
27:50 Always use exceptions for errors
30:50 Use exceptions only for errors
31:59 Exercise in choosing return value or exception

Recording, Part 2

Exception Handling Lecture, Part 2

Content, Part 2

00:00 Correct abstraction level
04:02 Include information about the exception
06:46 Exercise in exception information
12:08 Javadoc
13:05 Exercise in Javadoc
16:54 No state may change if an exception is thrown
20:39 Exercise in parameter checking
26:42 Never ignore an exception
29:16 Notify the user
30:44 Logging
31:25 Exercise in error messages and logging