| |
|
| java.lang.Object org.apache.axis2.jaxws.ExceptionFactory
ExceptionFactory | public class ExceptionFactory (Code) | | ExceptionFactory is used to create exceptions within the JAX-WS implementation. There are several
reasons for using a factory to create exceptions. 1. We can intercept all exception creation and
add the appropriate logging/serviceability. 2. Exceptions are chained. ExceptionFactory can
lengthen or reduce the cause chains as necessary to support the JAX-WS programming model. 3.
Prevents construction of the same exception. Uses similar principles as
AxisFault.makeException.
Example Usage: // Example usage
public fooMethod() throws WebServiceException { try{ ... } catch(Exception e){ throw
ExceptionFactory.makeWebServiceException(e); } }
|
Field Summary | |
protected static Log | log |
log | protected static Log log(Code) | | |
makeProtocolException | public static ProtocolException makeProtocolException(String message, Throwable throwable)(Code) | | Create a ProtocolException using the information from a Throwable and message
Parameters: message - Parameters: throwable - ProtocolException |
makeWebServiceException | public static WebServiceException makeWebServiceException(String message, Throwable throwable)(Code) | | Create a WebServiceException using the information from a given Throwable instance and message
Parameters: message - Parameters: throwable - WebServiceException |
makeWebServiceException | public static WebServiceException makeWebServiceException(String message)(Code) | | Make a WebServiceException with a given message
Parameters: message - WebServiceException |
makeWebServiceException | public static WebServiceException makeWebServiceException(Throwable throwable)(Code) | | Create a WebServiceException using the information from a given Throwable instance
Parameters: throwable - WebServiceException |
stackToString | public static String stackToString(Throwable e)(Code) | | Get a string containing the stack of the specified exception
Parameters: e - |
|
|
|