public class APIError extends Object
| Constructor and Description |
|---|
APIError() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory()
Category the error belongs to.
|
String |
getCode()
Deprecated: Use errorCode instead.
|
String |
getErrorCode()
Error code
|
Integer |
getHttpStatusCode()
HTTP status code for this error that can be used to determine the type of error
|
String |
getId()
ID of the error.
|
String |
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
|
String |
getPropertyName()
Returned only if the error relates to a value that was missing or incorrect.
|
Boolean |
getRetriable()
Flag indicating if the request is retriable.
|
void |
setCategory(String value)
Category the error belongs to.
|
void |
setCode(String value)
Deprecated: Use errorCode instead.
|
void |
setErrorCode(String value)
Error code
|
void |
setHttpStatusCode(Integer value)
HTTP status code for this error that can be used to determine the type of error
|
void |
setId(String value)
ID of the error.
|
void |
setMessage(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 fraud
|
void |
setPropertyName(String value)
Returned only if the error relates to a value that was missing or incorrect.
|
void |
setRetriable(Boolean value)
Flag indicating if the request is retriable.
|
APIError |
withCategory(String value)
Category the error belongs to.
|
APIError |
withCode(String value)
Deprecated: Use errorCode instead.
|
APIError |
withErrorCode(String value)
Error code
|
APIError |
withHttpStatusCode(Integer value)
HTTP status code for this error that can be used to determine the type of error
|
APIError |
withId(String value)
ID of the error.
|
APIError |
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 fraud
|
APIError |
withPropertyName(String value)
Returned only if the error relates to a value that was missing or incorrect.
|
APIError |
withRetriable(Boolean value)
Flag indicating if the request is retriable.
|
public String getCategory()
public void setCategory(String value)
public APIError withCategory(String value)
public String getCode()
public void setCode(String value)
public String getErrorCode()
public void setErrorCode(String value)
public Integer getHttpStatusCode()
public void setHttpStatusCode(Integer value)
public APIError withHttpStatusCode(Integer value)
public String getId()
public void setId(String value)
public APIError withId(String value)
public String getMessage()
public void setMessage(String value)
public APIError withMessage(String value)
public String getPropertyName()
public void setPropertyName(String value)
public APIError withPropertyName(String value)
public Boolean getRetriable()
public void setRetriable(Boolean value)
Copyright © 2024 Worldline Online Payments Direct. All rights reserved.