I think Throws Exception handles the general case. If my method will throw a specific exception, how to declare it?
public writeThisToFile(String line) throws FileNotFoundException, AppSpecificServiceException, SecurityException{ /* some thing */ }
see also
public void yourMethod() throws anException, anotherException { //stuff here }
Using the throws :
throws
public void myMethod() throws Exception1, Exception2 { ... }