NylasApiError

public final class NylasApiError extends AbstractNylasApiError

Class representation of a general Nylas API error.

Constructors

Link copied to clipboard
public NylasApiError NylasApiError(@Json(name = "type") String type, @Json(name = "message") String message, @Json(name = "provider_error") Map<String, Object> providerError, Integer statusCode, String requestId)

Properties

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

Error message.

Link copied to clipboard
private final Map<String, Object> providerError

Provider Error.

Link copied to clipboard
private String requestId
Link copied to clipboard

The HTTP status code of the error response

Link copied to clipboard
private final String type

Error type.

Functions

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

Error message.

Link copied to clipboard
public final Map<String, Object> getProviderError()

Provider Error.

Link copied to clipboard
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
public final String getType()

Error type.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Unit setRequestId(String requestId)
Link copied to clipboard
Link copied to clipboard
public Unit setStatusCode(Integer statusCode)

The HTTP status code of the error response