utils

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MPL-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrEmptyConfig

func IsErrEmptyConfig(pErr error) bool

func IsErrEmptyRequestOption

func IsErrEmptyRequestOption(pErr error) bool

func IsErrInvalidEndpoint

func IsErrInvalidEndpoint(pErr error) bool

func IsErrMissingInput

func IsErrMissingInput(pErr error) bool

func IsErrTooManyRequests

func IsErrTooManyRequests(pErr error) bool

func IsErrUnexpectedStatusCode

func IsErrUnexpectedStatusCode(pErr error) bool

func IsErrUnknown

func IsErrUnknown(pErr error) bool

func NewErrEmptyConfig

func NewErrEmptyConfig(pArgument, pInfo string) vconError.IErrorBuilder

func NewErrEmptyRequestOption

func NewErrEmptyRequestOption(pInfo string) vconError.IErrorBuilder

func NewErrInvalidEndpoint

func NewErrInvalidEndpoint(pInfo string) vconError.IErrorBuilder

func NewErrMissingInput

func NewErrMissingInput(pArgument, pInfo string) vconError.IErrorBuilder

func NewErrTooManyRequests

func NewErrTooManyRequests(pInfo string) vconError.IErrorBuilder

func NewErrUnexpectedStatusCode

func NewErrUnexpectedStatusCode(pURL, pMethod string, pExpected []int, pActual int, pInfo string) vconError.IErrorBuilder

func NewErrUnknown

func NewErrUnknown(pInfo string) vconError.IErrorBuilder

Types

type ErrEmptyConfig

type ErrEmptyConfig struct {
	Argument string

	vconError.BaseError
}

func (*ErrEmptyConfig) Error

func (s *ErrEmptyConfig) Error() string

type ErrEmptyRequestOption

type ErrEmptyRequestOption struct {
	vconError.BaseError
}

func (*ErrEmptyRequestOption) Error

func (s *ErrEmptyRequestOption) Error() string

type ErrInvalidEndpoint

type ErrInvalidEndpoint struct {
	vconError.BaseError
}

func (*ErrInvalidEndpoint) Error

func (s *ErrInvalidEndpoint) Error() string

type ErrMissingInput

type ErrMissingInput struct {
	Argument string

	vconError.BaseError
}

func (*ErrMissingInput) Error

func (s *ErrMissingInput) Error() string

type ErrTooManyRequests

type ErrTooManyRequests struct {
	vconError.BaseError
}

func (*ErrTooManyRequests) Error

func (s *ErrTooManyRequests) Error() string

type ErrUnexpectedStatusCode

type ErrUnexpectedStatusCode struct {
	URL      string
	Method   string
	Expected []int
	Actual   int

	vconError.BaseError
}

func (*ErrUnexpectedStatusCode) Error

func (s *ErrUnexpectedStatusCode) Error() string

type ErrUnknown

type ErrUnknown struct {
	vconError.BaseError
}

func (*ErrUnknown) Error

func (s *ErrUnknown) Error() string

Jump to

Keyboard shortcuts

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