2021-06-16 11:58:22 +03:00
|
|
|
package fiber
|
|
|
|
|
2022-02-06 23:28:02 +03:00
|
|
|
import (
|
2022-04-13 11:45:33 +03:00
|
|
|
errors "encoding/json"
|
|
|
|
|
2022-02-06 23:28:02 +03:00
|
|
|
"github.com/gofiber/fiber/v2/internal/schema"
|
|
|
|
)
|
2021-06-16 11:58:22 +03:00
|
|
|
|
|
|
|
type (
|
2022-09-28 15:56:20 +03:30
|
|
|
// ConversionError Conversion error exposes the internal schema.ConversionError for public use.
|
2021-06-16 11:58:22 +03:00
|
|
|
ConversionError = schema.ConversionError
|
|
|
|
// UnknownKeyError error exposes the internal schema.UnknownKeyError for public use.
|
|
|
|
UnknownKeyError = schema.UnknownKeyError
|
|
|
|
// EmptyFieldError error exposes the internal schema.EmptyFieldError for public use.
|
|
|
|
EmptyFieldError = schema.EmptyFieldError
|
|
|
|
// MultiError error exposes the internal schema.MultiError for public use.
|
|
|
|
MultiError = schema.MultiError
|
|
|
|
)
|
2022-02-06 23:28:02 +03:00
|
|
|
|
|
|
|
type (
|
|
|
|
// An InvalidUnmarshalError describes an invalid argument passed to Unmarshal.
|
|
|
|
// (The argument to Unmarshal must be a non-nil pointer.)
|
|
|
|
InvalidUnmarshalError = errors.InvalidUnmarshalError
|
|
|
|
|
|
|
|
// A MarshalerError represents an error from calling a MarshalJSON or MarshalText method.
|
|
|
|
MarshalerError = errors.MarshalerError
|
|
|
|
|
|
|
|
// A SyntaxError is a description of a JSON syntax error.
|
|
|
|
SyntaxError = errors.SyntaxError
|
|
|
|
|
|
|
|
// An UnmarshalTypeError describes a JSON value that was
|
|
|
|
// not appropriate for a value of a specific Go type.
|
|
|
|
UnmarshalTypeError = errors.UnmarshalTypeError
|
|
|
|
|
|
|
|
// An UnsupportedTypeError is returned by Marshal when attempting
|
|
|
|
// to encode an unsupported value type.
|
|
|
|
UnsupportedTypeError = errors.UnsupportedTypeError
|
|
|
|
|
|
|
|
UnsupportedValueError = errors.UnsupportedValueError
|
|
|
|
)
|