errors

package
v0.0.0-...-37f97d0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrDuplicateEmail

type ErrDuplicateEmail struct {
	Email string
}

ErrDuplicateEmail is raised when an account creation failed because of a duplicate email.

func (ErrDuplicateEmail) Error

func (e ErrDuplicateEmail) Error() string

Error implementation for ErrDuplicateEmail.

type ErrEmptyNamespace

type ErrEmptyNamespace struct{}

ErrEmptyNamespace is raised when config namespace is empty.

func (ErrEmptyNamespace) Error

func (e ErrEmptyNamespace) Error() string

Error implementation for ErrEmptyNamespace.

type ErrInternalLogic

type ErrInternalLogic struct {
	Logic string
}

ErrInternalLogic is raised when an internal logic is not respected. Don't use it for everything plz.

func (ErrInternalLogic) Error

func (e ErrInternalLogic) Error() string

Error implementation for ErrInternalLogic.

type ErrInvalidCredentials

type ErrInvalidCredentials struct{}

ErrInvalidCredentials is raised when invalid credentials are provided.

func (ErrInvalidCredentials) Error

func (e ErrInvalidCredentials) Error() string

Error implementation for ErrInvalidCredentials.

type ErrInvalidKey

type ErrInvalidKey struct {
	Key   string
	Value string

	Rules []string
}

ErrInvalidKey is raised when an input field is not valid.

func (ErrInvalidKey) Error

func (e ErrInvalidKey) Error() string

Error implementation for ErrInvalidRequest.

type ErrInvalidNumericalRange

type ErrInvalidNumericalRange struct {
	Key   string
	Value int

	Min int
	Max int
}

ErrInvalidNumericalRange is raised when a numerical value is out of range.

func (ErrInvalidNumericalRange) Error

func (e ErrInvalidNumericalRange) Error() string

Error implementation for ErrInvalidNumericalRange.

type ErrInvalidToken

type ErrInvalidToken struct{}

ErrInvalidToken is raised when invalid token is provided.

func (ErrInvalidToken) Error

func (e ErrInvalidToken) Error() string

Error implementation for ErrInvalidToken.

type ErrInvalidType

type ErrInvalidType struct {
	Key    string
	Expect string
	Value  interface{}
}

ErrInvalidType is raised when config value is wrong type.

func (ErrInvalidType) Error

func (e ErrInvalidType) Error() string

Error implementation for ErrInvalidType.

type ErrMissingKey

type ErrMissingKey struct {
	Key string
}

ErrMissingKey is raised when a config key is missing.

func (ErrMissingKey) Error

func (e ErrMissingKey) Error() string

Error implementation for ErrMissingKey.

type ErrNotFound

type ErrNotFound struct {
	Resource string
	Index    string
}

ErrNotFound is raised when an object is not found.

func (ErrNotFound) Error

func (e ErrNotFound) Error() string

Error implementation for ErrNotFound.

type ErrNullRequest

type ErrNullRequest struct{}

ErrNullRequest is raised when a request is null and shouldn't.

func (ErrNullRequest) Error

func (e ErrNullRequest) Error() string

Error implementation for ErrNullRequest.

Jump to

Keyboard shortcuts

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