Package com.plaid.client.model
Class Error
java.lang.Object
com.plaid.client.model.Error
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2021-10-15T19:47:39.714Z[GMT]")
public class Error
extends java.lang.Object
We use standard HTTP response codes for success and failure notifications, and our errors are further classified by `error_type`. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. Error fields will be `null` if no error has occurred.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Error.ErrorTypeEnum
A broad categorization of the error. -
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SERIALIZED_NAME_CAUSES
static java.lang.String
SERIALIZED_NAME_DISPLAY_MESSAGE
static java.lang.String
SERIALIZED_NAME_DOCUMENTATION_URL
static java.lang.String
SERIALIZED_NAME_ERROR_CODE
static java.lang.String
SERIALIZED_NAME_ERROR_MESSAGE
static java.lang.String
SERIALIZED_NAME_ERROR_TYPE
static java.lang.String
SERIALIZED_NAME_REQUEST_ID
static java.lang.String
SERIALIZED_NAME_STATUS
static java.lang.String
SERIALIZED_NAME_SUGGESTED_ACTION
-
Constructor Summary
Constructors Constructor Description Error()
-
Method Summary
Modifier and Type Method Description Error
addCausesItem(java.lang.Object causesItem)
Error
causes(java.util.List<java.lang.Object> causes)
Error
displayMessage(java.lang.String displayMessage)
Error
documentationUrl(java.lang.String documentationUrl)
boolean
equals(java.lang.Object o)
Error
errorCode(java.lang.String errorCode)
Error
errorMessage(java.lang.String errorMessage)
Error
errorType(Error.ErrorTypeEnum errorType)
java.util.List<java.lang.Object>
getCauses()
In the Assets product, a request can pertain to more than one Item.java.lang.String
getDisplayMessage()
A user-friendly representation of the error code.java.lang.String
getDocumentationUrl()
The URL of a Plaid documentation page with more information about the errorjava.lang.String
getErrorCode()
The particular error code.java.lang.String
getErrorMessage()
A developer-friendly representation of the error code.Error.ErrorTypeEnum
getErrorType()
A broad categorization of the error.java.lang.String
getRequestId()
A unique ID identifying the request, to be used for troubleshooting purposes.java.lang.Double
getStatus()
The HTTP status code associated with the error.java.lang.String
getSuggestedAction()
Suggested steps for resolving the errorint
hashCode()
Error
requestId(java.lang.String requestId)
void
setCauses(java.util.List<java.lang.Object> causes)
void
setDisplayMessage(java.lang.String displayMessage)
void
setDocumentationUrl(java.lang.String documentationUrl)
void
setErrorCode(java.lang.String errorCode)
void
setErrorMessage(java.lang.String errorMessage)
void
setErrorType(Error.ErrorTypeEnum errorType)
void
setRequestId(java.lang.String requestId)
void
setStatus(java.lang.Double status)
void
setSuggestedAction(java.lang.String suggestedAction)
Error
status(java.lang.Double status)
Error
suggestedAction(java.lang.String suggestedAction)
java.lang.String
toString()
-
Field Details
-
SERIALIZED_NAME_ERROR_TYPE
public static final java.lang.String SERIALIZED_NAME_ERROR_TYPE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR_CODE
public static final java.lang.String SERIALIZED_NAME_ERROR_CODE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR_MESSAGE
public static final java.lang.String SERIALIZED_NAME_ERROR_MESSAGE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DISPLAY_MESSAGE
public static final java.lang.String SERIALIZED_NAME_DISPLAY_MESSAGE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUEST_ID
public static final java.lang.String SERIALIZED_NAME_REQUEST_ID- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CAUSES
public static final java.lang.String SERIALIZED_NAME_CAUSES- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final java.lang.String SERIALIZED_NAME_STATUS- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOCUMENTATION_URL
public static final java.lang.String SERIALIZED_NAME_DOCUMENTATION_URL- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUGGESTED_ACTION
public static final java.lang.String SERIALIZED_NAME_SUGGESTED_ACTION- See Also:
- Constant Field Values
-
-
Constructor Details
-
Error
public Error()
-
-
Method Details
-
errorType
-
getErrorType
A broad categorization of the error. Safe for programatic use.- Returns:
- errorType
-
setErrorType
-
errorCode
-
getErrorCode
public java.lang.String getErrorCode()The particular error code. Safe for programmatic use.- Returns:
- errorCode
-
setErrorCode
public void setErrorCode(java.lang.String errorCode) -
errorMessage
-
getErrorMessage
public java.lang.String getErrorMessage()A developer-friendly representation of the error code. This may change over time and is not safe for programmatic use.- Returns:
- errorMessage
-
setErrorMessage
public void setErrorMessage(java.lang.String errorMessage) -
displayMessage
-
getDisplayMessage
@Nullable public java.lang.String getDisplayMessage()A user-friendly representation of the error code. `null` if the error is not related to user action. This may change over time and is not safe for programmatic use.- Returns:
- displayMessage
-
setDisplayMessage
public void setDisplayMessage(java.lang.String displayMessage) -
requestId
-
getRequestId
@Nullable public java.lang.String getRequestId()A unique ID identifying the request, to be used for troubleshooting purposes. This field will be omitted in errors provided by webhooks.- Returns:
- requestId
-
setRequestId
public void setRequestId(java.lang.String requestId) -
causes
-
addCausesItem
-
getCauses
@Nullable public java.util.List<java.lang.Object> getCauses()In the Assets product, a request can pertain to more than one Item. If an error is returned for such a request, `causes` will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified. `causes` will only be provided for the `error_type` `ASSET_REPORT_ERROR`.- Returns:
- causes
-
setCauses
public void setCauses(java.util.List<java.lang.Object> causes) -
status
-
getStatus
@Nullable public java.lang.Double getStatus()The HTTP status code associated with the error. This will only be returned in the response body when the error information is provided via a webhook.- Returns:
- status
-
setStatus
public void setStatus(java.lang.Double status) -
documentationUrl
-
getDocumentationUrl
@Nullable public java.lang.String getDocumentationUrl()The URL of a Plaid documentation page with more information about the error- Returns:
- documentationUrl
-
setDocumentationUrl
public void setDocumentationUrl(java.lang.String documentationUrl) -
suggestedAction
-
getSuggestedAction
@Nullable public java.lang.String getSuggestedAction()Suggested steps for resolving the error- Returns:
- suggestedAction
-
setSuggestedAction
public void setSuggestedAction(java.lang.String suggestedAction) -
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-