To make this work one will need to import the correct found in the " org . biojava . bio . structure " package and add also handle exceptions by using a try-catch block.
12.
If the exception propagates all the way up to the top-most main method without a matching catch block being found, a textual description of the exception is written to the standard output stream.
13.
Vectored handlers can be chained in order in a linked list and they aren't tied to the stack frame, so they can be added anywhere in the call stack unlike SEH's try / catch blocks.
14.
One criticism is that checked exceptions encourage programmers to use an empty catch block ( catch ( Exception e ) { } ), which silently swallows exceptions, rather than letting the exceptions propagate to a higher-level exception-handling routine.
15.
If no catch block matches the type of the thrown exception, the execution of the outer block ( or method ) containing the try . . . catch statement is discontinued, and the exception is passed up and outside the containing block ( or method ).