|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.jaxws.ExceptionFactory
public class ExceptionFactory
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 org.apache.commons.logging.Log |
log
|
Method Summary | |
---|---|
static ProtocolException |
makeProtocolException(java.lang.String message,
java.lang.Throwable throwable)
Create a ProtocolException using the information from a Throwable and message |
static WebServiceException |
makeWebServiceException(java.lang.String message)
Make a WebServiceException with a given message |
static WebServiceException |
makeWebServiceException(java.lang.String message,
java.lang.Throwable throwable)
Create a WebServiceException using the information from a given Throwable instance and message |
static WebServiceException |
makeWebServiceException(java.lang.Throwable throwable)
Create a WebServiceException using the information from a given Throwable instance |
static java.lang.String |
stackToString(java.lang.Throwable e)
Get a string containing the stack of the specified exception |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
Method Detail |
---|
public static WebServiceException makeWebServiceException(java.lang.String message, java.lang.Throwable throwable)
message
- throwable
-
public static ProtocolException makeProtocolException(java.lang.String message, java.lang.Throwable throwable)
message
- throwable
-
public static WebServiceException makeWebServiceException(java.lang.String message)
message
-
public static WebServiceException makeWebServiceException(java.lang.Throwable throwable)
throwable
-
public static java.lang.String stackToString(java.lang.Throwable e)
e
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |