{"modulePath":"github.com/going/json","version":"v0.0.0-20250722074740-d61791e4306e","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Types\n\n```go\ntype InvalidUTF8Error struct {\n\tS string // the whole string value that caused the error\n}\n```\n\n```go\nfunc (e *InvalidUTF8Error) Error() string\n```\n\n```go\ntype InvalidUnmarshalError struct {\n\tType reflect.Type\n}\n```\n\n```go\nfunc (e *InvalidUnmarshalError) Error() string\n```\n\n```go\ntype MarshalerError struct {\n\tType reflect.Type\n\tErr  error\n\t// contains filtered or unexported fields\n}\n```\nA MarshalerError represents an error from calling a MarshalJSON or MarshalText method.\n\n```go\nfunc ErrMarshaler(typ reflect.Type, err error, msg string) *MarshalerError\n```\n\n```go\nfunc (e *MarshalerError) Error() string\n```\n\n```go\nfunc (e *MarshalerError) Unwrap() error\n```\nUnwrap returns the underlying error.\n\n```go\ntype PathError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc ErrEmptyPath() *PathError\n```\n\n```go\nfunc ErrInvalidPath(msg string, args ...interface{}) *PathError\n```\n\n```go\nfunc (e *PathError) Error() string\n```\n\n```go\ntype SyntaxError struct {\n\tOffset int64 // error occurred after reading Offset bytes\n\t// contains filtered or unexported fields\n}\n```\nA SyntaxError is a description of a JSON syntax error.\n\n```go\nfunc ErrExceededMaxDepth(c byte, cursor int64) *SyntaxError\n```\n\n```go\nfunc ErrExpected(msg string, cursor int64) *SyntaxError\n```\n\n```go\nfunc ErrInvalidBeginningOfValue(c byte, cursor int64) *SyntaxError\n```\n\n```go\nfunc ErrInvalidCharacter(c byte, context string, cursor int64) *SyntaxError\n```\n\n```go\nfunc ErrNotAtBeginningOfValue(cursor int64) *SyntaxError\n```\n\n```go\nfunc ErrSyntax(msg string, offset int64) *SyntaxError\n```\n\n```go\nfunc ErrUnexpectedEndOfJSON(msg string, cursor int64) *SyntaxError\n```\n\n```go\nfunc (e *SyntaxError) Error() string\n```\n\n```go\ntype UnmarshalFieldError struct {\n\tKey   string\n\tType  reflect.Type\n\tField reflect.StructField\n}\n```\nAn UnmarshalFieldError describes a JSON object key that led to an unexported (and therefore unwritable) struct field.\n\nDeprecated: No longer used; kept for compatibility.\n\n```go\nfunc (e *UnmarshalFieldError) Error() string\n```\n\n```go\ntype UnmarshalTypeError struct {\n\tValue  string       // description of JSON value - \"bool\", \"array\", \"number -5\"\n\tType   reflect.Type // type of Go value it could not be assigned to\n\tOffset int64        // error occurred after reading Offset bytes\n\tStruct string       // name of the struct type containing the field\n\tField  string       // the full path from root node to the field\n}\n```\nAn UnmarshalTypeError describes a JSON value that was not appropriate for a value of a specific Go type.\n\n```go\nfunc (e *UnmarshalTypeError) Error() string\n```\n\n```go\ntype UnsupportedTypeError struct {\n\tType reflect.Type\n}\n```\nAn UnsupportedTypeError is returned by Marshal when attempting to encode an unsupported value type.\n\n```go\nfunc (e *UnsupportedTypeError) Error() string\n```\n\n```go\ntype UnsupportedValueError struct {\n\tValue reflect.Value\n\tStr   string\n}\n```\n\n```go\nfunc (e *UnsupportedValueError) Error() string\n```\n\n","path":"github.com/going/json/internal/errors","name":"errors","synopsis":"","isRedistributable":true}
