Created your exception class:
class ClassException extends IOException { public ClassException(String message) { super(message); } } In another class I try to forward an exception of this type:
public void amountOfPayment() throws ClassException { System.out.println("Indicate the amount of monthly child support: "); BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); totalPercentage(Double.parseDouble(reader.readLine())); } Swears on reader.readLine() :
Unhandled exception: java.io.IOException
What am I missing?