My problem is I cannot make the inner catch throw an exception. Here I want ex to be thrown to the outer catch.
Runnable(){ public void run(){ try{ try{ }catch(Exception ex){ System.out.println("Inner"); throw ex; //I get an error here } }catch(Exception e){ System.out.println("Outer"); }} Error message: Unreported Exception must be caught, declared to be thrown
Exceptionerror.