gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

error.go (1537B)


      1 package json
      2 
      3 import (
      4 	"github.com/goccy/go-json/internal/errors"
      5 )
      6 
      7 // Before Go 1.2, an InvalidUTF8Error was returned by Marshal when
      8 // attempting to encode a string value with invalid UTF-8 sequences.
      9 // As of Go 1.2, Marshal instead coerces the string to valid UTF-8 by
     10 // replacing invalid bytes with the Unicode replacement rune U+FFFD.
     11 //
     12 // Deprecated: No longer used; kept for compatibility.
     13 type InvalidUTF8Error = errors.InvalidUTF8Error
     14 
     15 // An InvalidUnmarshalError describes an invalid argument passed to Unmarshal.
     16 // (The argument to Unmarshal must be a non-nil pointer.)
     17 type InvalidUnmarshalError = errors.InvalidUnmarshalError
     18 
     19 // A MarshalerError represents an error from calling a MarshalJSON or MarshalText method.
     20 type MarshalerError = errors.MarshalerError
     21 
     22 // A SyntaxError is a description of a JSON syntax error.
     23 type SyntaxError = errors.SyntaxError
     24 
     25 // An UnmarshalFieldError describes a JSON object key that
     26 // led to an unexported (and therefore unwritable) struct field.
     27 //
     28 // Deprecated: No longer used; kept for compatibility.
     29 type UnmarshalFieldError = errors.UnmarshalFieldError
     30 
     31 // An UnmarshalTypeError describes a JSON value that was
     32 // not appropriate for a value of a specific Go type.
     33 type UnmarshalTypeError = errors.UnmarshalTypeError
     34 
     35 // An UnsupportedTypeError is returned by Marshal when attempting
     36 // to encode an unsupported value type.
     37 type UnsupportedTypeError = errors.UnsupportedTypeError
     38 
     39 type UnsupportedValueError = errors.UnsupportedValueError
     40 
     41 type PathError = errors.PathError