I have a custom exception like this
public class MyOwnException extends Exception {
}
Then in my class
I have two methods
public void ExceptionTest() throws Exception {
throw new FileNotFoundException();
}
public void ApplicationExceptionTest() throws MyOwnException {
throw new FileNotFoundException();
}
Eclipse complains about the second method 'Unhandled exception type FileNotFoundException'. I thought since MyOwnException extends Exception it shouldnt complain...
Can anyone tell me what I am missing here?