I'm writing a non-spring aop aspect using aspectJ and I'm writing a before advice for it.
In my before advice, let's say I want to open a file. So I execute it as such:
public before(): mypointcut() {
File file = new File("myfile");
file.getCanonicalPath();
}
But IntelliJ gripes about IOException being an unhandled exception. How can I write the before advice such that it can either catch and rethrow the exception or allow the unhandled exception?