Documentation ¶
Index ¶
- func IsAlreadyExistError(err error) bool
- func IsForbiddenError(err error) bool
- func IsNotFoundError(err error) bool
- func IsSerializationError(err error) bool
- func IsSpecWasTouchedError(err error) bool
- type AlreadyExistError
- type ForbiddenError
- type InvalidEntityError
- type NotFoundError
- type SerializationError
- type SpecWasTouched
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyExistError ¶
func IsForbiddenError ¶
func IsNotFoundError ¶
func IsSerializationError ¶
func IsSpecWasTouchedError ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.