public class FaultException extends Exception
| Constructor and Description |
|---|
FaultException(Document _faultDocument,
String nsURI,
Logger logger)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFaultCode()
Returns the fault code.
|
Document |
getFaultDocument()
Returns the fault document passed in the constructor.
|
String |
getFaultString()
Returns the fault string.
|
String |
getMessage()
Returns a description of the exception.
|
String |
getRequestID()
Returns the request id returned by CyberSource.
|
boolean |
isCritical()
Returns whether or not this exception is critical.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic Document getFaultDocument()
public String getFaultCode()
public String getFaultString()
public 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 String getMessage()
getMessage in class ThrowableCopyright © 2022. All rights reserved.