errors

package
v1.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StackOverflow = &json.UnsupportedValueError{
	Str:   "Value nesting too deep",
	Value: reflect.ValueOf("..."),
}

Functions

func ErrorField

func ErrorField(name string) error

func ErrorMismatch

func ErrorMismatch(src string, pos int, vt *rt.GoType) error

func ErrorType

func ErrorType(vt *rt.GoType) error

func ErrorValue

func ErrorValue(value string, vtype reflect.Type) error

func ErrorWrap

func ErrorWrap(src string, pos int, code types.ParsingError) error

Types

type MismatchTypeError

type MismatchTypeError struct {
	Pos  int
	Src  string
	Type reflect.Type
}

func (MismatchTypeError) Description

func (self MismatchTypeError) Description() string

func (MismatchTypeError) Error

func (self MismatchTypeError) Error() string

type SyntaxError

type SyntaxError struct {
	Pos  int
	Src  string
	Code types.ParsingError
	Msg  string
}

func (SyntaxError) Description

func (self SyntaxError) Description() string

func (SyntaxError) Error

func (self SyntaxError) Error() string

func (SyntaxError) Message

func (self SyntaxError) Message() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL