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, Map<String, List<String>> headers)

Properties

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

The HTTP headers of the error response

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

The HTTP status code of the error response.

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

The HTTP headers of the error response

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

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
public final String getType()

Error type.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Unit setHeaders(Map<String, List<String>> headers)

The HTTP headers of the error response

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