change the method headers to declare the exceptions they throw

..