How to make Eclipse to report error when declared exception is not caught?
For example, if I declare method as
public int someMethod(int a, int b) throws IllegalArgumentException {
...
}
And then use it in another method like
public int anotherMethod() {
...
return someMethod(a, b);
}
I want compiler to report error in anotherMethod, until I will catch IllegalArgumentException or declare another method as
public int anotherMethod() throws IllegalArgumentException {}