The error details.
ErrorException
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
Name |
String |
Required | The human-readable, unique name of the error. | String getName() | setName(String name) |
Message |
String |
Required | The message that describes the error. | String getMessageField() | setMessageField(String messageField) |
DebugId |
String |
Required | The PayPal internal ID. Used for correlation purposes. | String getDebugId() | setDebugId(String debugId) |
Details |
List<ErrorDetails> |
Optional | An array of additional details about the error. | List getDetails() | setDetails(List details) |
Links |
List<LinkDescription> |
Optional, Read-only | An array of request-related HATEOAS links. | List getLinks() | setLinks(List links) |
try {
// make the API call
} catch (ErrorException e) {
e.printStackTrace();
} catch (ApiException e) {
e.printStackTrace();
}