Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.22 KB

File metadata and controls

31 lines (22 loc) · 1.22 KB

Error Exception

The error details.

Structure

ErrorException

Fields

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)

Example

try {
    // make the API call
} catch (ErrorException e) {
    e.printStackTrace();
} catch (ApiException e) {
    e.printStackTrace();
}