errors
v1.15.5
github.com/bytedance/sonic/internal/decoder/errors
Documentation
pkg.go.dev ↗Variables
StackOverflow
var StackOverflow = &json.UnsupportedValueError{
Str: "Value nesting too deep",
Value: reflect.ValueOf("..."),
}
Functions
ErrorField
func ErrorField(name string) error
ErrorMismatch
func ErrorMismatch(src string, pos int, vt *rt.GoType) error
ErrorType
func ErrorType(vt *rt.GoType) error
ErrorValue
func ErrorValue(value string, vtype reflect.Type) error
ErrorWrap
func ErrorWrap(src string, pos int, code types.ParsingError) error
Types
MismatchTypeError
type MismatchTypeError struct {
Pos int
Src string
Type reflect.Type
}
MismatchTypeError.Description
func (self MismatchTypeError) Description() string
MismatchTypeError.Error
func (self MismatchTypeError) Error() string
SyntaxError
type SyntaxError struct {
Pos int
Src string
Code types.ParsingError
Msg string
}
SyntaxError.Description
func (self SyntaxError) Description() string
SyntaxError.Error
func (self SyntaxError) Error() string
SyntaxError.Message
func (self SyntaxError) Message() string