github.com/gofiber/fiber/v2@v2.47.0/error.go (about)

     1  package fiber
     2  
     3  import (
     4  	errors "encoding/json"
     5  
     6  	"github.com/gofiber/fiber/v2/internal/schema"
     7  )
     8  
     9  type (
    10  	// ConversionError Conversion error exposes the internal schema.ConversionError for public use.
    11  	ConversionError = schema.ConversionError
    12  	// UnknownKeyError error exposes the internal schema.UnknownKeyError for public use.
    13  	UnknownKeyError = schema.UnknownKeyError
    14  	// EmptyFieldError error exposes the internal schema.EmptyFieldError for public use.
    15  	EmptyFieldError = schema.EmptyFieldError
    16  	// MultiError error exposes the internal schema.MultiError for public use.
    17  	MultiError = schema.MultiError
    18  )
    19  
    20  type (
    21  	// An InvalidUnmarshalError describes an invalid argument passed to Unmarshal.
    22  	// (The argument to Unmarshal must be a non-nil pointer.)
    23  	InvalidUnmarshalError = errors.InvalidUnmarshalError
    24  
    25  	// A MarshalerError represents an error from calling a MarshalJSON or MarshalText method.
    26  	MarshalerError = errors.MarshalerError
    27  
    28  	// A SyntaxError is a description of a JSON syntax error.
    29  	SyntaxError = errors.SyntaxError
    30  
    31  	// An UnmarshalTypeError describes a JSON value that was
    32  	// not appropriate for a value of a specific Go type.
    33  	UnmarshalTypeError = errors.UnmarshalTypeError
    34  
    35  	// An UnsupportedTypeError is returned by Marshal when attempting
    36  	// to encode an unsupported value type.
    37  	UnsupportedTypeError = errors.UnsupportedTypeError
    38  
    39  	UnsupportedValueError = errors.UnsupportedValueError
    40  )