Package com.onlinepayments.domain
Class APIError
java.lang.Object
com.onlinepayments.domain.APIError
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCategory the error belongs to.getCode()Deprecated.Use errorCode instead.Error codeHTTP status code for this error that can be used to determine the type of errorgetId()ID of the error.Human-readable error message that is not meant to be relayed to customer as it might tip off people who are trying to commit fraudReturned only if the error relates to a value that was missing or incorrect.Flag indicating if the request is retriable.voidsetCategory(String value) Category the error belongs to.voidDeprecated.Use errorCode instead.voidsetErrorCode(String value) Error codevoidsetHttpStatusCode(Integer value) HTTP status code for this error that can be used to determine the type of errorvoidID of the error.voidsetMessage(String value) Human-readable error message that is not meant to be relayed to customer as it might tip off people who are trying to commit fraudvoidsetPropertyName(String value) Returned only if the error relates to a value that was missing or incorrect.voidsetRetriable(Boolean value) Flag indicating if the request is retriable.withCategory(String value) Category the error belongs to.Deprecated.Use errorCode instead.withErrorCode(String value) Error codewithHttpStatusCode(Integer value) HTTP status code for this error that can be used to determine the type of errorID of the error.withMessage(String value) Human-readable error message that is not meant to be relayed to customer as it might tip off people who are trying to commit fraudwithPropertyName(String value) Returned only if the error relates to a value that was missing or incorrect.withRetriable(Boolean value) Flag indicating if the request is retriable.
-
Constructor Details
-
APIError
public APIError()
-
-
Method Details
-
getCategory
Category the error belongs to. The category should give an indication of the type of error you are dealing with. Possible values:- DIRECT_PLATFORM_ERROR - indicating that a functional error has occurred in the platform.
- PAYMENT_PLATFORM_ERROR - indicating that a functional error has occurred in the payment platform.
- IO_ERROR - indicating that a technical error has occurred within the payment platform or between the payment platform and third party systems.
-
setCategory
Category the error belongs to. The category should give an indication of the type of error you are dealing with. Possible values:- DIRECT_PLATFORM_ERROR - indicating that a functional error has occurred in the platform.
- PAYMENT_PLATFORM_ERROR - indicating that a functional error has occurred in the payment platform.
- IO_ERROR - indicating that a technical error has occurred within the payment platform or between the payment platform and third party systems.
-
withCategory
Category the error belongs to. The category should give an indication of the type of error you are dealing with. Possible values:- DIRECT_PLATFORM_ERROR - indicating that a functional error has occurred in the platform.
- PAYMENT_PLATFORM_ERROR - indicating that a functional error has occurred in the payment platform.
- IO_ERROR - indicating that a technical error has occurred within the payment platform or between the payment platform and third party systems.
-
getCode
Deprecated.Use errorCode instead. Error codeDeprecated: Use errorCode instead. Error code -
setCode
Deprecated.Use errorCode instead. Error codeDeprecated: Use errorCode instead. Error code -
withCode
Deprecated.Use errorCode instead. Error codeDeprecated: Use errorCode instead. Error code -
getErrorCode
Error code -
setErrorCode
Error code -
withErrorCode
Error code -
getHttpStatusCode
HTTP status code for this error that can be used to determine the type of error -
setHttpStatusCode
HTTP status code for this error that can be used to determine the type of error -
withHttpStatusCode
HTTP status code for this error that can be used to determine the type of error -
getId
ID of the error. This is a short human-readable message that briefly describes the error. -
setId
ID of the error. This is a short human-readable message that briefly describes the error. -
withId
ID of the error. This is a short human-readable message that briefly describes the error. -
getMessage
Human-readable error message that is not meant to be relayed to customer as it might tip off people who are trying to commit fraud -
setMessage
Human-readable error message that is not meant to be relayed to customer as it might tip off people who are trying to commit fraud -
withMessage
Human-readable error message that is not meant to be relayed to customer as it might tip off people who are trying to commit fraud -
getPropertyName
Returned only if the error relates to a value that was missing or incorrect.Contains a location path to the value as a JSonata query.
Some common examples:
- a.b selects the value of property b of root property a,
- a[1] selects the first element of the array in root property a,
- a[b='some value'] selects all elements of the array in root property a that have a property b with value 'some value'.
-
setPropertyName
Returned only if the error relates to a value that was missing or incorrect.Contains a location path to the value as a JSonata query.
Some common examples:
- a.b selects the value of property b of root property a,
- a[1] selects the first element of the array in root property a,
- a[b='some value'] selects all elements of the array in root property a that have a property b with value 'some value'.
-
withPropertyName
Returned only if the error relates to a value that was missing or incorrect.Contains a location path to the value as a JSonata query.
Some common examples:
- a.b selects the value of property b of root property a,
- a[1] selects the first element of the array in root property a,
- a[b='some value'] selects all elements of the array in root property a that have a property b with value 'some value'.
-
getRetriable
Flag indicating if the request is retriable. Retriable requests mean that a technical error happened and that the same request can safely be sent again with a new idempotence key. -
setRetriable
Flag indicating if the request is retriable. Retriable requests mean that a technical error happened and that the same request can safely be sent again with a new idempotence key. -
withRetriable
Flag indicating if the request is retriable. Retriable requests mean that a technical error happened and that the same request can safely be sent again with a new idempotence key.
-