Documentation
¶
Index ¶
- func NewAlreadyExistsError(resourceType string, ids ...string) error
- func NewAlreadyInUseError(resourceType string, ids ...string) error
- func NewExpiredError(resourceType string, ids ...string) error
- func NewNotFoundError(resourceType string, ids ...string) error
- func TrackError(err error) error
- func TrackErrorVar(err error, vars map[string]any) error
- func Wrap(err1 error, err2 error) error
- func WrapPostgresErrorCode(err error, resourceType string, id ...string) error
- type AlreadyExistsError
- type AlreadyInUseError
- type ExpiredError
- type NotFoundError
- type StatusError
- type TrackedError
- type TrackedVarFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAlreadyExistsError ¶
func NewAlreadyInUseError ¶
func NewExpiredError ¶
func NewNotFoundError ¶
func TrackError ¶
func WrapPostgresErrorCode ¶
Returns an error wrapping the error specified, and one of these errors: errors:
**validation.NewErrValidation**: if NOT NULL constraint or foreign key is violated **errors.AlreadyExistsError**: if a UNIQUE constraint is violated
Types ¶
type AlreadyExistsError ¶
type AlreadyExistsError struct {
// contains filtered or unexported fields
}
func (AlreadyExistsError) Error ¶
func (e AlreadyExistsError) Error() string
type AlreadyInUseError ¶
type AlreadyInUseError struct {
// contains filtered or unexported fields
}
func (AlreadyInUseError) Error ¶
func (e AlreadyInUseError) Error() string
type ExpiredError ¶
type ExpiredError struct {
// contains filtered or unexported fields
}
func (ExpiredError) Error ¶
func (e ExpiredError) Error() string
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type StatusError ¶
func APIErrorHandler ¶
func APIErrorHandler(err error) StatusError
type TrackedError ¶
type TrackedError struct {
// contains filtered or unexported fields
}
func (*TrackedError) Error ¶
func (e *TrackedError) Error() string
func (*TrackedError) Unwrap ¶
func (e *TrackedError) Unwrap() error
type TrackedVarFile ¶
type TrackedVarFile struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.