errors

package
v0.0.0-...-51300c0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToError

func ConvertToError(r interface{}) error

ConvertToError converts recovered type to error

func NewDoubleSubErr

func NewDoubleSubErr(msg string) error

func NewNotImplemented

func NewNotImplemented() error

NewNotImplemented auxiliary - to mark not implemented

func NewUnexpectedError

func NewUnexpectedError(msg string) error

Types

type DoubleSubErr

type DoubleSubErr struct {
	// contains filtered or unexported fields
}

DoubleSubErr happens when multiple subscriptions not available, but called

func (DoubleSubErr) Error

func (msg DoubleSubErr) Error() string

type NoAccessErr

type NoAccessErr struct {
	// contains filtered or unexported fields
}

NoAccessErr happens when not enough access rights to account provided by token

func NewNoAccess

func NewNoAccess(msg string) NoAccessErr

func (NoAccessErr) Error

func (err NoAccessErr) Error() string

type NotFoundErr

type NotFoundErr struct {
	// contains filtered or unexported fields
}

NotFoundErr happens when some resources not found

func NewNotFound

func NewNotFound(msg string) NotFoundErr

func (NotFoundErr) Error

func (err NotFoundErr) Error() string

type WrongAccStateErr

type WrongAccStateErr struct {
	// contains filtered or unexported fields
}

WrongAccStateErr happens when account in wrong state

func NewWrongAccState

func NewWrongAccState(msg string) WrongAccStateErr

func (WrongAccStateErr) Error

func (err WrongAccStateErr) Error() string

Jump to

Keyboard shortcuts

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