mirror of
https://github.com/asdine/storm.git
synced 2025-10-04 14:32:46 +08:00
20 lines
856 B
Go
20 lines
856 B
Go
package storm
|
|
|
|
import "errors"
|
|
|
|
// Errors
|
|
var (
|
|
ErrNoID = errors.New("missing struct tag id or ID field")
|
|
ErrZeroID = errors.New("id field must not be a zero value")
|
|
ErrBadType = errors.New("provided data must be a struct or a pointer to struct")
|
|
ErrAlreadyExists = errors.New("already exists")
|
|
ErrNilParam = errors.New("param must not be nil")
|
|
ErrBadIndexType = errors.New("bad index type")
|
|
ErrSlicePtrNeeded = errors.New("provided target must be a pointer to slice")
|
|
ErrStructPtrNeeded = errors.New("provided target must be a pointer to struct")
|
|
ErrPtrNeeded = errors.New("provided target must be a pointer to a valid variable")
|
|
ErrNoName = errors.New("provided target must have a name")
|
|
ErrIndexNotFound = errors.New("index not found")
|
|
ErrNotFound = errors.New("not found")
|
|
)
|