-
Notifications
You must be signed in to change notification settings - Fork 72
/
error.go
18 lines (16 loc) · 880 Bytes
/
error.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package gosql
import "errors"
var (
ErrTableDoesNotExist = errors.New("Table does not exist")
ErrTableAlreadyExists = errors.New("Table already exists")
ErrIndexAlreadyExists = errors.New("Index already exists")
ErrViolatesUniqueConstraint = errors.New("Duplicate key value violates unique constraint")
ErrViolatesNotNullConstraint = errors.New("Value violates not null constraint")
ErrColumnDoesNotExist = errors.New("Column does not exist")
ErrInvalidSelectItem = errors.New("Select item is not valid")
ErrInvalidDatatype = errors.New("Invalid datatype")
ErrMissingValues = errors.New("Missing values")
ErrInvalidCell = errors.New("Cell is invalid")
ErrInvalidOperands = errors.New("Operands are invalid")
ErrPrimaryKeyAlreadyExists = errors.New("Primary key already exists")
)