Adding upstream version 2.52.6.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
a960158181
commit
6d002e9543
441 changed files with 95392 additions and 0 deletions
40
error.go
Normal file
40
error.go
Normal file
|
@ -0,0 +1,40 @@
|
|||
package fiber
|
||||
|
||||
import (
|
||||
errors "encoding/json"
|
||||
|
||||
"github.com/gofiber/fiber/v2/internal/schema"
|
||||
)
|
||||
|
||||
type (
|
||||
// ConversionError Conversion error exposes the internal schema.ConversionError for public use.
|
||||
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
|
||||
)
|
||||
|
||||
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
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue