public class FaultException
extends java.lang.Exception
| Constructor and Description |
|---|
FaultException(org.w3c.dom.Document _faultDocument,
java.lang.String nsURI,
Logger logger)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFaultCode()
Returns the fault code.
|
org.w3c.dom.Document |
getFaultDocument()
Returns the fault document passed in the constructor.
|
java.lang.String |
getFaultString()
Returns the fault string.
|
java.lang.String |
getMessage()
Returns a description of the exception.
|
java.lang.String |
getRequestID()
Returns the request id returned by CyberSource.
|
boolean |
isCritical()
Returns whether or not this exception is critical.
|
public FaultException(org.w3c.dom.Document _faultDocument,
java.lang.String nsURI,
Logger logger)
_faultDocument - Document object representing the fault.logger - used to log the fault details.public org.w3c.dom.Document getFaultDocument()
public java.lang.String getFaultCode()
public java.lang.String getFaultString()
public java.lang.String getRequestID()
null if
none was returned, which would mean that the fault occurred
before CyberSource was able to create one.public boolean isCritical()
true if the local part of the fault code is
"CriticalServerError".public java.lang.String getMessage()
getMessage in class java.lang.ThrowableCopyright © 2018. All Rights Reserved.