Documentation ¶
Index ¶
- Constants
- type DatabaseError
- func NewDatabaseError(action string, entityType string, entityValue string, entityField string, ...) DatabaseError
- func NewDuplicateEntryError(action string, entityType string, entityValue string, entityField string) DatabaseError
- func NewNotFoundError(action string, entityType string, entityValue string, entityField string) DatabaseError
- type DuplicateEntryError
- type NotFoundError
Constants ¶
View Source
const ( DATABASE_ACTION_RETRIEVE = "retrieving" DATABASE_ACTION_CREATE = "creating" DATABASE_ACTION_DELETE = "deleting" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseError ¶
type DatabaseError struct { DatabaseAction string EntityType string EntityValue string EntityField string NestedError error }
func NewDatabaseError ¶
func NewDuplicateEntryError ¶
func NewDuplicateEntryError(action string, entityType string, entityValue string, entityField string) DatabaseError
func NewNotFoundError ¶
func NewNotFoundError(action string, entityType string, entityValue string, entityField string) DatabaseError
func (DatabaseError) Error ¶
func (d DatabaseError) Error() string
func (DatabaseError) Unwrap ¶
func (d DatabaseError) Unwrap() error
type DuplicateEntryError ¶
type DuplicateEntryError struct {
EntityType string
}
func (DuplicateEntryError) Error ¶
func (d DuplicateEntryError) Error() string
type NotFoundError ¶
type NotFoundError struct {
Value string
}
func (NotFoundError) Error ¶
func (n NotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.