Documentation ¶
Index ¶
- type ErrorSet
- func (set *ErrorSet) AddErr(err error, keyPathNodes ...interface{})
- func (set *ErrorSet) Each(cb func(*FieldError))
- func (set *ErrorSet) Err() error
- func (set *ErrorSet) Error() string
- func (set *ErrorSet) Flatten() *ErrorSet
- func (set *ErrorSet) Len() int
- func (set *ErrorSet) ToErrorFields() statusx.ErrorFields
- type FieldError
- type KeyPath
- type Location
- type MissingRequiredFieldError
- type MultipleOfError
- type NotInEnumError
- type NotMatchError
- type OutOfRangeError
- type SyntaxError
- type UnsupportedTypeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorSet ¶
type ErrorSet struct {
// contains filtered or unexported fields
}
func NewErrorSet ¶
func NewErrorSet() *ErrorSet
func NewErrorSetWithRoot ¶
func (*ErrorSet) Each ¶
func (set *ErrorSet) Each(cb func(*FieldError))
func (*ErrorSet) ToErrorFields ¶
func (set *ErrorSet) ToErrorFields() statusx.ErrorFields
type FieldError ¶
type MissingRequiredFieldError ¶
type MissingRequiredFieldError struct{}
func (MissingRequiredFieldError) Error ¶
func (MissingRequiredFieldError) Error() string
type MultipleOfError ¶
type MultipleOfError struct { Target string Current interface{} MultipleOf interface{} }
func (*MultipleOfError) Error ¶
func (e *MultipleOfError) Error() string
type NotInEnumError ¶
type NotInEnumError struct { Target string Current interface{} Enums []interface{} }
func (*NotInEnumError) Error ¶
func (e *NotInEnumError) Error() string
type NotMatchError ¶
func (*NotMatchError) Error ¶
func (err *NotMatchError) Error() string
type OutOfRangeError ¶
type OutOfRangeError struct { Target string Current interface{} Minimum interface{} Maximum interface{} ExclusiveMaximum bool ExclusiveMinimum bool }
func (*OutOfRangeError) Error ¶
func (e *OutOfRangeError) Error() string
type SyntaxError ¶
type SyntaxError struct {
// contains filtered or unexported fields
}
func NewSyntaxError ¶
func NewSyntaxError(format string, args ...interface{}) *SyntaxError
func (*SyntaxError) Error ¶
func (e *SyntaxError) Error() string
type UnsupportedTypeError ¶
type UnsupportedTypeError struct {
// contains filtered or unexported fields
}
func NewUnsupportedTypeError ¶
func NewUnsupportedTypeError(typ string, rule string, msgs ...string) *UnsupportedTypeError
func (*UnsupportedTypeError) Error ¶
func (e *UnsupportedTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.