package errors

Import Path
	github.com/goccy/go-json/internal/errors (on go.dev)

Dependency Relation
	imports 3 packages, and imported by 3 packages

Involved Source Files error.go
Package-Level Type Names (total 9)
/* sort by: | */
Type reflect.Type (*InvalidUnmarshalError) Error() string *InvalidUnmarshalError : error
// the whole string value that caused the error (*InvalidUTF8Error) Error() string *InvalidUTF8Error : error
A MarshalerError represents an error from calling a MarshalJSON or MarshalText method. Err error Type reflect.Type (*MarshalerError) Error() string Unwrap returns the underlying error. *MarshalerError : error *MarshalerError : golang.org/x/xerrors.Wrapper func ErrMarshaler(typ reflect.Type, err error, msg string) *MarshalerError func github.com/goccy/go-json/internal/encoder.ErrMarshalerWithCode(code *encoder.Opcode, err error) *MarshalerError
(*PathError) Error() string *PathError : error func ErrEmptyPath() *PathError func ErrInvalidPath(msg string, args ...interface{}) *PathError
A SyntaxError is a description of a JSON syntax error. // error occurred after reading Offset bytes (*SyntaxError) Error() string *SyntaxError : error func ErrExceededMaxDepth(c byte, cursor int64) *SyntaxError func ErrExpected(msg string, cursor int64) *SyntaxError func ErrInvalidBeginningOfValue(c byte, cursor int64) *SyntaxError func ErrInvalidCharacter(c byte, context string, cursor int64) *SyntaxError func ErrNotAtBeginningOfValue(cursor int64) *SyntaxError func ErrSyntax(msg string, offset int64) *SyntaxError func ErrUnexpectedEndOfJSON(msg string, cursor int64) *SyntaxError
An UnmarshalFieldError describes a JSON object key that led to an unexported (and therefore unwritable) struct field. Deprecated: No longer used; kept for compatibility. Field reflect.StructField Key string Type reflect.Type (*UnmarshalFieldError) Error() string *UnmarshalFieldError : error
An UnmarshalTypeError describes a JSON value that was not appropriate for a value of a specific Go type. // the full path from root node to the field, include embedded struct // error occurred after reading Offset bytes // name of the struct type containing the field // type of Go value it could not be assigned to // description of JSON value - "bool", "array", "number -5" (*UnmarshalTypeError) Error() string *UnmarshalTypeError : error
An UnsupportedTypeError is returned by Marshal when attempting to encode an unsupported value type. Type reflect.Type (*UnsupportedTypeError) Error() string *UnsupportedTypeError : error
Str string Value reflect.Value (*UnsupportedValueError) Error() string *UnsupportedValueError : error func github.com/goccy/go-json/internal/encoder.ErrUnsupportedFloat(v float64) *UnsupportedValueError func github.com/goccy/go-json/internal/encoder.ErrUnsupportedValue(code *encoder.Opcode, ptr uintptr) *UnsupportedValueError
Package-Level Functions (total 10)
func ErrExpected(msg string, cursor int64) *SyntaxError
func ErrInvalidCharacter(c byte, context string, cursor int64) *SyntaxError
func ErrInvalidPath(msg string, args ...interface{}) *PathError
func ErrSyntax(msg string, offset int64) *SyntaxError