yotierror

package
v3.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InvalidRequestSignature can be returned by any endpoint that requires a signed request.
	InvalidRequestSignature = "INVALID_REQUEST_SIGNATURE"
	// InvalidAuthHeader can be returned by any endpoint that requires a signed request.
	InvalidAuthHeader = "INVALID_AUTH_HEADER"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Id        string `json:"id"`
	Status    int    `json:"status"`
	ErrorCode string `json:"error"`
	Message   string `json:"message"`
}

Error indicates errors related to the Yoti API.

func NewResponseError

func NewResponseError(response *http.Response) *Error

NewResponseError creates a new Error

func (Error) Error

func (e Error) Error() string

func (Error) Temporary

func (e Error) Temporary() bool

Temporary indicates this ErrorCode is a temporary ErrorCode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL