updated exception example to show list of exception classes