errors

package
v0.0.0-...-ff628f3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequestError

type BadRequestError string

func (BadRequestError) Error

func (e BadRequestError) Error() string

type CheckoutAPIError

type CheckoutAPIError struct {
	StatusCode int
	Status     string
	Data       *ErrorDetails
}

func HandleError

func HandleError(statusCode int, status string, requestId string, body []byte) CheckoutAPIError

func (CheckoutAPIError) Error

func (e CheckoutAPIError) Error() string

type CheckoutArgumentError

type CheckoutArgumentError string

func (CheckoutArgumentError) Error

func (e CheckoutArgumentError) Error() string

type CheckoutAuthorizationError

type CheckoutAuthorizationError string

func InvalidAuthorizationType

func InvalidAuthorizationType(authType string) CheckoutAuthorizationError

func InvalidKey

func InvalidKey(key string) CheckoutAuthorizationError

func (CheckoutAuthorizationError) Error

type CheckoutOAuthError

type CheckoutOAuthError struct {
	Description string `json:"error"`
}

func (CheckoutOAuthError) Error

func (e CheckoutOAuthError) Error() string

type ErrorDetails

type ErrorDetails struct {
	RequestID  string                 `json:"request_id,omitempty"`
	ErrorType  string                 `json:"error_type,omitempty"`
	ErrorCodes []string               `json:"error_codes,omitempty"`
	Id         string                 `json:"id,omitempty"`
	Links      map[string]interface{} `json:"_links,omitempty"`
}

type InternalError

type InternalError string

func (InternalError) Error

func (e InternalError) Error() string

type UnsupportedTypeError

type UnsupportedTypeError string

func (UnsupportedTypeError) Error

func (e UnsupportedTypeError) Error() string

Jump to

Keyboard shortcuts

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