repositories

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 NewDatabaseError(action string, entityType string, entityValue string, entityField string, nestedError error) DatabaseError

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

Jump to

Keyboard shortcuts

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