Refactor Extract Exception Handling To Aspect

[CategoryRefactoring/RefactoringLanguage - an instance of AspectOrientedRefactoring]

See "Extract exception handling" for an example of centralizing the exception handling of the J2EE Business Delegate pattern into an AspectOrientedProgramming aspect.

In this case, extracting this code from each public method, into an aspect:
    public <type> <methodName>(<parameters>) throws LibraryException? {
        try {
            < real work here >
        } catch (RemoteException ex) {
            throw new LibraryException?(ex);
        }
    }


CategoryException CategoryRefactoring


EditText of this page (last edited March 20, 2006) or FindPage with title or text search