|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.cybersource.ws.client.FaultException
public class FaultException
Exception that encapsulates a fault returned by CyberSource. Used by both the Basic and XML clients.
| Constructor Summary | |
|---|---|
FaultException(Document _faultDocument,
String nsURI,
Logger logger)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FaultException(Document _faultDocument,
String nsURI,
Logger logger)
_faultDocument - Document object representing the fault.logger - used to log the fault details.| Method Detail |
|---|
public 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 Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||