The FaultDetails object is described below.
The FaultDetails object is thrown when Edentiti experiences an error. It is designed to contain enough information to allow the client application to understand the error, and continue processing.
There are three circumstances that will cause a FaultDetails fault to be raised:
The FaultDetails exception is wrapped in a normal SOAPFault, and Web Services client libraries will usually unwrap this object for client consumption automatically. That is, the FaultDetails object (generated on the client side from Edentiti’s WSDL), should be returned to the client code directly.
The FaultDetails object has the following structure:
Member | Meaning |
---|---|
Code | This member contains a short code for the problem. The list of possible fault codes is:
|
Details | This field contains a human readable message which details the exact nature of the fault. In the case where the code is a FieldValidationError, this field contains a list of fields that were invalid, including the name and a validation message, separated by “\n” characters. For example, if theisoCountry parameter and the postcode parameter were invalid, then this field would contain the following: isoCountry:Invalid Country Code\n postcode:Please enter a valid postcode In the case of the other faults, this field contains a short, human readable description of the fault. For example, if a userId that is already in use (say, 123) is used again, then this field will contain: UserId in use: 123 |
From time to time, an error will occur during processing a particular verification request. For example, network problems may prevent connections, or service providers may be unavailable.
Such errors do not raise faults, though. Instead the fact that an error was experience is stored in the state member of the object, and is returned if the outcome is queried by the client.