Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConflictError ¶
type ConflictError struct {
// contains filtered or unexported fields
}
ConflictError error type for creating an existing entity
func NewConflictError ¶
func NewConflictError(entity string, err error) *ConflictError
NewConflictError creates new ConflictError instance
func (*ConflictError) Is ¶
func (e *ConflictError) Is(target error) bool
Is checks whether an error is due to ConflictError
type InvalidInputError ¶
type InvalidInputError struct {
// contains filtered or unexported fields
}
InvalidInputError error type for invalid users input
func NewInvalidInputErrorf ¶
func NewInvalidInputErrorf(format string, a ...any) *InvalidInputError
NewInvalidInputErrorf creates new instance of InvalidInputError
func (*InvalidInputError) Error ¶
func (e *InvalidInputError) Error() string
Error Return error message
func (*InvalidInputError) Is ¶
func (e *InvalidInputError) Is(target error) bool
Is check whether the error is InvalidInputError
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError error type for missing entity
func NewNotFoundError ¶
func NewNotFoundError(entity string, identity any) *NotFoundError
NewNotFoundError creates new instance of NotFoundError
func (*NotFoundError) Is ¶
func (e *NotFoundError) Is(target error) bool
Is check whether the error is NotFoundError
Click to show internal directories.
Click to hide internal directories.