Пример #1
0
 public static void processExceptions(Solution obj) {
   try {
     obj.method1();
     obj.method2();
     obj.method3();
   } catch (RemoteException e) {
     System.out.println(e);
   } catch (NoSuchFieldException e) {
     System.out.println(e);
   } catch (IOException e) {
     System.out.println(e);
   }
 }
Пример #2
0
 public static void processExceptions(Solution obj) {
   try {
     obj.method1();
     obj.method2();
     obj.method3();
   } catch (IOException e1) {
     System.out.println(e1);
   } catch (NoSuchFieldException e2) {
     System.out.println(e2);
   } // catch (RemoteException e3){
   // System.out.println(e3);
   // }
 }