NylasOAuthError

public final class NylasOAuthError extends AbstractNylasApiError

Class representing an OAuth error returned by the Nylas API.

Constructors

Link copied to clipboard
public NylasOAuthError NylasOAuthError(@Json(name = "error") String error, @Json(name = "error_description") String errorDescription, @Json(name = "error_uri") String errorUri, @Json(name = "error_code") String errorCode, @Json(name = "request_id") String requestId, Integer statusCode)

Properties

Link copied to clipboard
private final Throwable cause
Link copied to clipboard
private final String error

Error type.

Link copied to clipboard
private String errorCode

Error code used for referencing the docs, logs, and data stream.

Link copied to clipboard
private final String errorDescription

Human readable error description.

Link copied to clipboard
private final String errorUri

URL to the related documentation and troubleshooting regarding this error.

Link copied to clipboard
private final String message
Link copied to clipboard
private String requestId

The HTTP status code of the error response.

Link copied to clipboard

The HTTP status code of the error response.

Functions

Link copied to clipboard
public final Unit addSuppressed(Throwable p0)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final String getError()

Error type.

Link copied to clipboard
public final String getErrorCode()

Error code used for referencing the docs, logs, and data stream.

Link copied to clipboard
public final String getErrorDescription()

Human readable error description.

Link copied to clipboard
public final String getErrorUri()

URL to the related documentation and troubleshooting regarding this error.

Link copied to clipboard
Link copied to clipboard
public String getMessage()
Link copied to clipboard

The HTTP status code of the error response.

Link copied to clipboard
Link copied to clipboard

The HTTP status code of the error response.

Link copied to clipboard
public final Array<Throwable> getSuppressed()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Unit setErrorCode(String errorCode)

Error code used for referencing the docs, logs, and data stream.

Link copied to clipboard
public Unit setRequestId(String requestId)

The HTTP status code of the error response.

Link copied to clipboard
Link copied to clipboard
public Unit setStatusCode(Integer statusCode)

The HTTP status code of the error response.