errors

package
v0.0.0-...-a5f9e11 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAlreadyExistError

func IsAlreadyExistError(err error) bool

func IsForbiddenError

func IsForbiddenError(err error) bool

func IsNotFoundError

func IsNotFoundError(err error) bool

func IsSerializationError

func IsSerializationError(err error) bool

func IsSpecWasTouchedError

func IsSpecWasTouchedError(err error) bool

Types

type AlreadyExistError

type AlreadyExistError struct {
	Entity string
}

func (AlreadyExistError) Error

func (aee AlreadyExistError) Error() string

type ForbiddenError

type ForbiddenError struct{}

func (ForbiddenError) Error

func (aee ForbiddenError) Error() string

type InvalidEntityError

type InvalidEntityError struct {
	Entity           string
	ValidationErrors []error
}

func (InvalidEntityError) Error

func (iee InvalidEntityError) Error() string

type NotFoundError

type NotFoundError struct {
	Entity string
}

func (NotFoundError) Error

func (nfe NotFoundError) Error() string

type SerializationError

type SerializationError struct{}

func (SerializationError) Error

func (se SerializationError) Error() string

type SpecWasTouched

type SpecWasTouched struct {
	Entity string
}

Error means that spec of entity was touched (any field was changed). Could be raised in operations that require such behaviour

func (SpecWasTouched) Error

func (swc SpecWasTouched) Error() string

Jump to

Keyboard shortcuts

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