bmxerror

package
v0.0.0-...-a3be206 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 65

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapNetworkErrors

func WrapNetworkErrors(host string, err error) error

WrapNetworkErrors ...

Types

type Error

type Error interface {
	Error() string
	Code() string
	Description() string
}

Error interface

func New

func New(code, description string) Error

New creates a new Error object

func NewRequestFailure

func NewRequestFailure(code, description string, statusCode int) Error

NewRequestFailure creates a new Error object wrapping the server error

type InvalidSSLCert

type InvalidSSLCert struct {
	URL    string
	Reason string
}

InvalidSSLCert ...

func NewInvalidSSLCert

func NewInvalidSSLCert(url, reason string) *InvalidSSLCert

NewInvalidSSLCert ...

func (*InvalidSSLCert) Error

func (err *InvalidSSLCert) Error() string

type InvalidTokenError

type InvalidTokenError struct {
	Message string
}

InvalidTokenError ...

func NewInvalidTokenError

func NewInvalidTokenError(message string) *InvalidTokenError

NewInvalidTokenError ...

func (*InvalidTokenError) Error

func (e *InvalidTokenError) Error() string

type RequestFailure

type RequestFailure interface {
	Error
	// The status code of the HTTP response.
	StatusCode() int
}

RequestFailure interface

Jump to

Keyboard shortcuts

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