public class SoapFault extends Exception
Modifier and Type | Field and Description |
---|---|
protected String |
action
The associated action.
|
protected String |
detail
The SOAP fault detail as a string.
|
protected boolean |
headerFault
The header fault flag.
|
protected String |
node
The SOAP fault reason.
|
protected String |
reason
The SOAP fault reason.
|
protected String |
role
The SOAP fault role.
|
protected SoapFaultType |
soapFaultType
The SOAP fault type.
|
protected QName |
subcode
The SOAP fault subcode.
|
protected QName |
subSubcode
The SOAP fault sub subcode.
|
Modifier | Constructor and Description |
---|---|
protected |
SoapFault()
Default constructor.
|
protected |
SoapFault(SoapFaultType soapFaultType,
QName subcode,
String reason)
Create a custom SOAP fault.
|
protected |
SoapFault(SoapFaultType soapFaultType,
QName subcode,
String reason,
String detail)
Create a custom SOAP fault.
|
protected |
SoapFault(SoapFaultType soapFaultType,
String reason)
Create a custom SOAP fault.
|
protected |
SoapFault(SoapFaultType soapFaultType,
String reason,
String detail)
Create a custom SOAP fault.
|
protected |
SoapFault(Throwable th)
Construct a SOAP fault based on a throwable.
|
Modifier and Type | Method and Description |
---|---|
static String |
generateStackTrace(Throwable th)
Generate a stack trace from a throwable.
|
String |
getAction()
Get the fault action.
|
String |
getDetail()
Get the SOAP fault detail.
|
String |
getMessage()
Get a message describing this fault.
|
String |
getNode()
Get the SOAP fault node.
|
String |
getReason()
Get the SOAP fault reason.
|
String |
getRole()
Get the SOAP fault role.
|
SoapFaultType |
getSoapFaultType()
Get the SOAP fault type.
|
QName |
getSubcode()
Get the SOAP fault subcode.
|
QName |
getSubSubcode()
Get the SOAP fault sub subcode.
|
boolean |
isHeaderFault()
Is this a fault from a SOAP header?
|
void |
setAction(String action)
Set the fault action.
|
void |
setDetail(String detail)
Set the SOAP fault detail.
|
void |
setHeaderFault(boolean headerFault)
Set the header fault flag.
|
void |
setNode(String node)
Set the SOAP fault node.
|
void |
setReason(String reason)
Set the SOAP fault reason.
|
void |
setRole(String role)
Set the SOAP fault role.
|
void |
setSoapFaultType(SoapFaultType soapFaultType)
Set the SOAP fault type.
|
void |
setSubcode(QName subcode)
Set the SOAP fault subcode.
|
void |
setSubSubcode(QName subSubcode)
Set the SOAP fault sub subcode.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected SoapFaultType soapFaultType
protected QName subcode
protected QName subSubcode
protected String reason
protected String node
protected String detail
protected String role
protected boolean headerFault
protected String action
protected SoapFault()
protected SoapFault(Throwable th)
th
- The throwable.protected SoapFault(SoapFaultType soapFaultType, QName subcode, String reason)
soapFaultType
- the soap fault type.subcode
- The fault subcode.reason
- The fault reason.protected SoapFault(SoapFaultType soapFaultType, String reason)
soapFaultType
- the soap fault type.reason
- The fault reason.protected SoapFault(SoapFaultType soapFaultType, String reason, String detail)
soapFaultType
- the soap fault type.reason
- The fault reason.detail
- The fault detail.protected SoapFault(SoapFaultType soapFaultType, QName subcode, String reason, String detail)
soapFaultType
- the soap fault type.subcode
- The fault subcode.reason
- The fault reason.detail
- The fault detail.public SoapFaultType getSoapFaultType()
public void setSoapFaultType(SoapFaultType soapFaultType)
soapFaultType
- The SOAP fault type.public QName getSubcode()
public void setSubcode(QName subcode)
subcode
- The SOAP fault subcode.public QName getSubSubcode()
public void setSubSubcode(QName subSubcode)
subSubcode
- The SOAP fault sub subcode.public String getReason()
public void setReason(String reason)
reason
- The SOAP fault reason.public String getNode()
public void setNode(String node)
node
- The SOAP fault node.public String getRole()
public void setRole(String role)
role
- The SOAP fault role.public String getDetail()
public void setDetail(String detail)
detail
- The SOAP fault detail.public boolean isHeaderFault()
public void setHeaderFault(boolean headerFault)
headerFault
- true if generated by a SOAP header, false otherwise.public String getAction()
public void setAction(String action)
action
- The fault action.public String getMessage()
getMessage
in class Throwable
Copyright © 2017 JBoss by Red Hat. All rights reserved.