Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

errors.gno

1.68 Kb · 34 lines
 1package json
 2
 3import "errors"
 4
 5var (
 6	errNilNode               = errors.New("node is nil")
 7	errNotArrayNode          = errors.New("node is not array")
 8	errNotBoolNode           = errors.New("node is not boolean")
 9	errNotNullNode           = errors.New("node is not null")
10	errNotNumberNode         = errors.New("node is not number")
11	errNotObjectNode         = errors.New("node is not object")
12	errNotStringNode         = errors.New("node is not string")
13	errInvalidToken          = errors.New("invalid token")
14	errIndexNotFound         = errors.New("index not found")
15	errInvalidAppend         = errors.New("can't append value to non-appendable node")
16	errInvalidAppendCycle    = errors.New("appending value to itself or its children or parents will cause a cycle")
17	errInvalidEscapeSequence = errors.New("invalid escape sequence")
18	errInvalidStringValue    = errors.New("invalid string value")
19	errEmptyBooleanNode      = errors.New("boolean node is empty")
20	errEmptyStringNode       = errors.New("string node is empty")
21	errKeyRequired           = errors.New("key is required for object")
22	errUnmatchedParenthesis  = errors.New("mismatched bracket or parenthesis")
23	errUnmatchedQuotePath    = errors.New("unmatched quote in path")
24)
25
26var (
27	errInvalidStringInput    = errors.New("invalid string input")
28	errMalformedBooleanValue = errors.New("malformed boolean value")
29	errEmptyByteSlice        = errors.New("empty byte slice")
30	errInvalidExponentValue  = errors.New("invalid exponent value")
31	errNonDigitCharacters    = errors.New("non-digit characters found")
32	errNumericRangeExceeded  = errors.New("numeric value exceeds the range limit")
33	errMultipleDecimalPoints = errors.New("multiple decimal points found")
34)