public class WSSException
extends java.lang.Exception
| Constructor and Description |
|---|
WSSException()
Creates a WSSException.
|
WSSException(javax.xml.namespace.QName fault,
java.lang.String message)
Creates a WSSException.
|
WSSException(javax.xml.namespace.QName fault,
java.lang.String message,
java.lang.Throwable cause)
Creates a WSSException.
|
WSSException(java.lang.String message)
Creates a WSSException.
|
WSSException(java.lang.String message,
java.lang.Throwable cause)
Creates a WSSException.
|
WSSException(java.lang.Throwable cause)
Creates a WSSException.
|
WSSException(java.lang.Throwable cause,
boolean rethrow) |
| Modifier and Type | Method and Description |
|---|---|
static WSSException |
format(javax.xml.namespace.QName fault,
java.lang.String key)
Creates a WSSException.
|
static WSSException |
format(javax.xml.namespace.QName fault,
java.lang.String key,
org.apache.axiom.om.OMDocument doc)
Creates a WSSException.
|
static WSSException |
format(javax.xml.namespace.QName fault,
java.lang.String key,
java.lang.String arg1)
Creates a WSSException.
|
static WSSException |
format(javax.xml.namespace.QName fault,
java.lang.String key,
java.lang.String[] args)
Creates a WSSException.
|
static WSSException |
format(javax.xml.namespace.QName fault,
java.lang.String key,
java.lang.String[] args,
java.lang.Throwable cause)
Creates a WSSException.
|
static WSSException |
format(javax.xml.namespace.QName fault,
java.lang.String key,
java.lang.String arg1,
java.lang.String arg2)
Creates a WSSException.
|
static WSSException |
format(javax.xml.namespace.QName fault,
java.lang.String key,
java.lang.String arg1,
java.lang.Throwable cause)
Creates a WSSException.
|
static WSSException |
format(javax.xml.namespace.QName fault,
java.lang.String key,
java.lang.Throwable cause)
Creates a WSSException.
|
static WSSException |
format(java.lang.String key)
Creates a WSSException.
|
static WSSException |
format(java.lang.String key,
java.lang.String arg1)
Creates a WSSException.
|
static WSSException |
format(java.lang.String key,
java.lang.String[] args)
Creates a WSSException.
|
static WSSException |
format(java.lang.String key,
java.lang.String[] args,
java.lang.Throwable cause)
Creates a WSSException.
|
static WSSException |
format(java.lang.String key,
java.lang.String arg1,
java.lang.String arg2)
Creates a WSSException.
|
static WSSException |
format(java.lang.String key,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4,
java.lang.Throwable cause)
Creates a WSSException.
|
static WSSException |
format(java.lang.String key,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.Throwable cause)
Creates a WSSException.
|
static WSSException |
format(java.lang.String key,
java.lang.String arg1,
java.lang.Throwable cause)
Creates a WSSException.
|
static WSSException |
format(java.lang.String key,
java.lang.Throwable cause)
Creates a WSSException.
|
java.lang.Throwable |
getCauseException()
Returns a root exception.
|
static java.util.ArrayList<org.apache.axiom.om.OMNode> |
getElementsByTagNameNS(org.apache.axiom.om.OMNode node,
java.lang.String nsUri,
java.lang.String localName) |
javax.xml.namespace.QName |
getFaultCode()
Returns a SOAP faultcode.
|
static java.lang.String |
getMessage(java.lang.String key)
Get NLS messages, mainly use for throwing exceptions
|
static WSSException |
rethrow(java.lang.Throwable t) |
public WSSException(java.lang.Throwable cause,
boolean rethrow)
public WSSException()
public WSSException(java.lang.String message)
message - A message.public WSSException(javax.xml.namespace.QName fault,
java.lang.String message)
fault - A QName object which represents SOAP faultcode.message - A message.public WSSException(javax.xml.namespace.QName fault,
java.lang.String message,
java.lang.Throwable cause)
fault - A QName object which represents SOAP faultcode.message - A message.cause - The orginal exceptionpublic WSSException(java.lang.String message,
java.lang.Throwable cause)
message - A message.cause - A root exception.public WSSException(java.lang.Throwable cause)
cause - A root exception.public static WSSException format(java.lang.String key)
key - A resource key for the error message.public static WSSException format(java.lang.String key, java.lang.Throwable cause)
key - Resource key for the error message.cause - A root exception.public static WSSException format(java.lang.String key, java.lang.String arg1)
key - Resource key for the error message.arg1 - A parameter for the message resource.public static WSSException format(java.lang.String key, java.lang.String arg1, java.lang.Throwable cause)
key - Resource key for the error message.arg1 - A parameter for the message resource.cause - A root exception.public static WSSException format(java.lang.String key, java.lang.String[] args)
key - Resource key for the error message.args - Parameters for the message resource.public static WSSException format(java.lang.String key, java.lang.String[] args, java.lang.Throwable cause)
key - Resource key for the error message.args - Parameters for the message resource.cause - A root exception.public static WSSException format(javax.xml.namespace.QName fault, java.lang.String key)
fault - A QName object which represents SOAP faultcode.key - Resource key for the error message.public static WSSException format(javax.xml.namespace.QName fault, java.lang.String key, java.lang.Throwable cause)
fault - A QName object which represents SOAP faultcode.key - Resource key for the error message.cause - A root exception.public static WSSException format(javax.xml.namespace.QName fault, java.lang.String key, java.lang.String arg1)
fault - A QName object which represents SOAP faultcode.key - Resource key for the error message.arg1 - A parameter for the message resource.public static WSSException format(javax.xml.namespace.QName fault, java.lang.String key, java.lang.String arg1, java.lang.Throwable cause)
fault - A QName object which represents SOAP faultcode.key - Resource key for the error message.arg1 - A parameter for the message resource.cause - A root exception.public static WSSException format(javax.xml.namespace.QName fault, java.lang.String key, java.lang.String[] args)
fault - A QName object which represents SOAP faultcode.key - Resource key for the error message.args - An array which contains the parameters for the message
resource.public static WSSException format(javax.xml.namespace.QName fault, java.lang.String key, java.lang.String[] args, java.lang.Throwable cause)
fault - A QName object which represents SOAP faultcode.key - Resource key for the error message.args - An array which contains the parameters for the message
resource.cause - A root exception.public static WSSException format(java.lang.String key, java.lang.String arg1, java.lang.String arg2)
key - Resource key for the error message.arg1 - First parameter for the message resource.arg2 - Second parameter for the message resource.public static WSSException format(java.lang.String key, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.Throwable cause)
key - Resource key for the error message.arg1 - First parameter for the message resource.arg2 - Second parameter for the message resource.arg3 - Third parameter for the message resource.cause - A root exceptionpublic static WSSException format(java.lang.String key, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4, java.lang.Throwable cause)
key - Resource key for the error message.arg1 - First parameter for the message resource.arg2 - Second parameter for the message resource.arg3 - Third parameter for the message resource.arg4 - Fourth parameter for the message resource.cause - A root exception.public static WSSException format(javax.xml.namespace.QName fault, java.lang.String key, java.lang.String arg1, java.lang.String arg2)
fault - A QName object which represents SOAP faultcode.key - Resource key for the error message.arg1 - First parameter for the message resource.arg2 - Second parameter for the message resource.public static WSSException format(javax.xml.namespace.QName fault, java.lang.String key, org.apache.axiom.om.OMDocument doc)
fault - A QName object which represents SOAP faultcode.key - Resource key for the error message.doc - A DOM of the received message.public static WSSException rethrow(java.lang.Throwable t)
public java.lang.Throwable getCauseException()
public javax.xml.namespace.QName getFaultCode()
public static java.lang.String getMessage(java.lang.String key)
key - NLS message keypublic static java.util.ArrayList<org.apache.axiom.om.OMNode> getElementsByTagNameNS(org.apache.axiom.om.OMNode node,
java.lang.String nsUri,
java.lang.String localName)
node - node.nsUri - namespace URI of the element to match on. The
special value "*" matches all namespaces.localName - local name of the element to match on. The
special value "*" matches all local names.