I think throws Exception
only handles the general case.
If my method can throw multiple exceptions, how to declare it?
public writeThisToFile(String line) throws FileNotFoundException, AppSpecificServiceException, SecurityException{
/* some thing */
}
See Also
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With