7.2.3 The exception specification



It is civilized to inform the client programmer of the exception that might be thrown from your method.
void f() throws tooBig, tooSmall, oldStyle {
    //    Body of f()
}
If you throw something from a method, you must specify it.
You can lie to secify an exception you'll not throw.

Next Page