Chapter SeventeenModern Programming Languages35 The Throws Clause A throws clause lists one or more throwable classes separated by commas n This one always throws, but in general, the throws clause means might throw So any caller of z must catch OutOfGas, or place it in its own throws clause void z() throws OutOfGas { throw new OutOfGas( You have run out of gas. , 19); }
{}