Advice Types: After Throwing

Let's see the following figure for after throwing advice. This advice executes the after the target method terminated abnormally. It mean the target method throws any exception, then this advice will be executed. Please refer to the following diagram:

As you can see in figure, the after throwing advice is executed after the target throws an exception. This advice will never execute if the target doesn't throw any exception in the application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset