2019-01-09 10:17:42 +03:00
|
|
|
package objects
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
2019-01-18 12:43:46 +03:00
|
|
|
// ErrNotCallable represents an error for calling on non-function objects.
|
|
|
|
var ErrNotCallable = errors.New("not a callable object")
|
|
|
|
|
|
|
|
// ErrNotIndexable represents an error for indexing on non-indexable objects.
|
|
|
|
var ErrNotIndexable = errors.New("non-indexable object")
|
|
|
|
|
2019-01-15 09:24:33 +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")
|