AspectJ Cookbook by Miles Russ

AspectJ Cookbook by Miles Russ

Author:Miles, Russ
Language: eng
Format: epub
Tags: COMPUTERS / Programming Languages / Java
ISBN: 9781449383909
Publisher: O'Reilly Media
Published: 2012-05-09T04:00:00+00:00


See Also

Recipe 16.1 explains how classes can be extended by aspects introducing new methods and attributes; OO design patterns and the benefits that those patterns can gain by using an aspect-oriented approach are examined in Chapter 17 through Chapter 19.

16.5. Softening Exceptions

Problem

You want to specify a set of exceptions that should be softened — i.e., converted to uncaught exceptions — when raised on the join points selected by a specific pointcut.

Solution

Use the declare soft statement.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.