@@ -0,0 +1,559 @@
+class MyDemoException extends Exception%7B%0A%09private int detail;%0A%09%0A%09MyDemoException(int a)%0A%09%7B%0A%09%09detail = a;%0A%09%7D%0A%09%0A%09public String toString()%7B%0A%09%09return %22DemoException %5B%22 + detail + %22%5D%22;%0A%09%7D%0A%7D%0A%0Aclass ManualExceptionDemo %7B%0A static void compute(int a) throws MyDemoException %7B%0A System.out.println(%22Called compute(%22 + a + %22)%22);%0A if(a %3E 10)%0A throw new MyDemoException(a);%0A System.out.println(%22Normal exit%22);%0A %7D%0A public static void main(String args%5B%5D) %7B%0A %09try %7B%0A %09%09compute(1);%0A %09%09compute(20);%0A %09%7D catch (MyDemoException e) %7B%0A %09%09System.out.println(%22Caught %22 + e);%0A %09%7D%0A %7D%0A%7D%0A

Create ManualExceptionDemo.java