aboutsummaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental/PR152257/base/IOExceptionInjector.aj
blob: 82f4c5c512f9ec4b3193792d8c8618e24a311dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// IOExceptionInjector.aj
package test;

import java.io.IOException;

public aspect IOExceptionInjector {
        pointcut faultInjection() : call(void methodThatThrows() throws
IOException);

        void around() throws IOException : faultInjection() {
                throw new IOException("Exception injected by aspect."); 
        }
}