true sir. so should I declare the function as throws the specified exceptions instead?