UnauthorizedError

public final class UnauthorizedError

Indicates that the token sent in the 'Authorization' header is either invalid or missing. Please check the value in the token field along with the token expiration time before retrying.

Parameters

code

Snake cased all caps error code interpreted from the HTTP status code that can programmatically be acted upon.

message

A human-readable explanation of the error, specific to this error occurrence.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
public final class Builder
Link copied to clipboard
public enum Code extends Enum<UnauthorizedError.Code>

Snake cased all caps error code interpreted from the HTTP status code that can programmatically be acted upon. Values: UNAUTHORIZED,FORBIDDEN,NOT_FOUND,ORDER_PURCHASE_UPDATE_NOT_FOUND,TOO_MANY_REQUESTS,INTERNAL_SERVER_ERROR,BAD_GATEWAY,RETRYABLE_ORDER_PURCHASE_SCREEN_FAILURE,RETRYABLE_ORDER_PURCHASE_UPDATE_FAILURE,GATEWAY_TIMEOUT,BAD_REQUEST

Properties

Link copied to clipboard
@NotNull()
private final UnauthorizedError.Code code
Link copied to clipboard
@NotNull()
@Valid()
private final String message

Functions

Link copied to clipboard
public final static UnauthorizedError.Builder builder()
Link copied to clipboard
Link copied to clipboard
public final String getMessage()
Link copied to clipboard