public class ExceptionFactory extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Modifier and Type | Method and Description |
---|---|
static ProtocolException |
makeProtocolException(String message,
Throwable throwable)
Create a ProtocolException using the information from a Throwable and message
|
static WebServiceException |
makeWebServiceException(String message)
Make a WebServiceException with a given message
|
static WebServiceException |
makeWebServiceException(String message,
Throwable throwable)
Create a WebServiceException using the information from a given Throwable instance and message
|
static WebServiceException |
makeWebServiceException(Throwable throwable)
Create a WebServiceException using the information from a given Throwable instance
|
static void |
setInitialCause(Throwable target,
Throwable initialCause)
Give a target Throwable, set the initialCause Throwable as the initial cause on the target.
|
static String |
stackToString(Throwable e)
Get a string containing the stack of the specified exception
|
public static WebServiceException makeWebServiceException(String message, Throwable throwable)
message
- throwable
- public static ProtocolException makeProtocolException(String message, Throwable throwable)
message
- throwable
- public static WebServiceException makeWebServiceException(String message)
message
- public static WebServiceException makeWebServiceException(Throwable throwable)
throwable
- public static String stackToString(Throwable e)
e
- public static void setInitialCause(Throwable target, Throwable initialCause)
target
- The throwable on which to set the initial causeinitialCause
- The initial cause to set on the target Throwable.Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.