1 16 package org.apache.axis2.engine; 17 18 import java.lang.reflect.InvocationTargetException ; 19 20 31 public class AxisFault extends java.rmi.RemoteException { 32 33 public AxisFault(Throwable arg1) { 34 super(arg1.getMessage(), arg1); 35 } 36 39 public AxisFault(String arg0) { 40 super(arg0); 41 } 42 43 47 public AxisFault(String arg0, Throwable arg1) { 48 super(arg0, arg1); 49 } 50 51 61 public static AxisFault makeFault(Exception e) { 62 if (e instanceof InvocationTargetException ) { 63 Throwable t = ((InvocationTargetException ) e).getTargetException(); 64 if (t instanceof Exception ) { 65 e = (Exception ) t; 66 } 67 } 68 if (e instanceof AxisFault) { 69 return (AxisFault) e; 70 } 71 return new AxisFault(e.getMessage(), e); 72 } 73 } 74 | Popular Tags |