hermesErrors

package
v0.0.0-...-d3e0ec2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseError

type BaseError struct {
	PrivateMessage string
	// contains filtered or unexported fields
}

func BadLogin

func BadLogin() *BaseError

func FailedValidation

func FailedValidation(errors []*ValidatorError) *BaseError

func InternalServerError

func InternalServerError(privateMessage string) *BaseError

func MessageDoesNotExits

func MessageDoesNotExits() *BaseError

func MissingBearer

func MissingBearer() *BaseError

func NotValidToken

func NotValidToken() *BaseError

func OwnerDoesNotExits

func OwnerDoesNotExits() *BaseError

func RecipientDoesNotExits

func RecipientDoesNotExits() *BaseError

func UnexpectedSigningMethod

func UnexpectedSigningMethod(alg interface{}) *BaseError

func UnprocessableEntity

func UnprocessableEntity(privateMessage string) *BaseError

func UserExists

func UserExists() *BaseError

func (*BaseError) Error

func (b *BaseError) Error() string

func (*BaseError) LogPrivate

func (b *BaseError) LogPrivate()

func (*BaseError) Wrap

func (b *BaseError) Wrap(s string) *BaseError

type HermesError

type HermesError interface {
	Error() string
	LogPrivate()

	Wrap(s string) *BaseError
	// contains filtered or unexported methods
}

type ValidatorError

type ValidatorError struct {
	Field string `json:"field"`
	Tag   string `json:"tag"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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