summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/d5/tengo/objects/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/d5/tengo/objects/errors.go')
-rw-r--r--vendor/github.com/d5/tengo/objects/errors.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/d5/tengo/objects/errors.go b/vendor/github.com/d5/tengo/objects/errors.go
index e4012314..bcd480a1 100644
--- a/vendor/github.com/d5/tengo/objects/errors.go
+++ b/vendor/github.com/d5/tengo/objects/errors.go
@@ -20,6 +20,12 @@ var ErrInvalidOperator = errors.New("invalid operator")
// ErrWrongNumArguments represents a wrong number of arguments error.
var ErrWrongNumArguments = errors.New("wrong number of arguments")
+// ErrBytesLimit represents an error where the size of bytes value exceeds the limit.
+var ErrBytesLimit = errors.New("exceeding bytes size limit")
+
+// ErrStringLimit represents an error where the size of string value exceeds the limit.
+var ErrStringLimit = errors.New("exceeding string size limit")
+
// ErrInvalidArgumentType represents an invalid argument value type error.
type ErrInvalidArgumentType struct {
Name string