Intro Ex1 Ex2 Ex3 Ex4 Ex5 Ex6 Ex7

The Basics: Exercise 6

Add another advice in the aspect Basics to print a message after a method of class Application exits with an exception. The message should contain a description of the exception.

Employ after() throwing(Exception e) advice instead of before advice.

Rerun the application and verify that the advice outputs a description for the exception raised inside of the exec method.


Continue with Exercise 7.