xgo/objects/errors.go

25 lines
956 B
Go
Raw Normal View History

2019-01-09 10:17:42 +03:00
package objects
import "errors"
// ErrNotIndexable means the type is not indexable.
var ErrNotIndexable = errors.New("type is not indexable")
2019-01-18 12:43:46 +03:00
// ErrNotIndexAssignable means the type is not index-assignable.
var ErrNotIndexAssignable = errors.New("type is not index-assignable")
// ErrIndexOutOfBounds is an error where a given index is out of the bounds.
var ErrIndexOutOfBounds = errors.New("index out of bounds")
// ErrInvalidIndexType means the type is not supported as an index.
var ErrInvalidIndexType = errors.New("invalid index type")
2019-01-18 12:43:46 +03:00
// ErrInvalidOperator represents an error for invalid operator usage.
2019-01-09 10:17:42 +03:00
var ErrInvalidOperator = errors.New("invalid operator")
2019-01-17 12:56:05 +03:00
// ErrWrongNumArguments represents a wrong number of arguments error.
var ErrWrongNumArguments = errors.New("wrong number of arguments")
2019-01-18 03:52:07 +03:00
// ErrInvalidTypeConversion represents an invalid type conversion error.
var ErrInvalidTypeConversion = errors.New("invalid type conversion")