Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SquashMultiError ¶
type SquashMultiError []error
SquashMultiError is an error wrapping multiple validation errors returned by Squash.ValidateAll() if the designated constraints aren't met.
func (SquashMultiError) AllErrors ¶
func (m SquashMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SquashMultiError) Error ¶
func (m SquashMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SquashValidationError ¶
type SquashValidationError struct {
// contains filtered or unexported fields
}
SquashValidationError is the validation error returned by Squash.Validate if the designated constraints aren't met.
func (SquashValidationError) Cause ¶
func (e SquashValidationError) Cause() error
Cause function returns cause value.
func (SquashValidationError) Error ¶
func (e SquashValidationError) Error() string
Error satisfies the builtin error interface
func (SquashValidationError) ErrorName ¶
func (e SquashValidationError) ErrorName() string
ErrorName returns error name.
func (SquashValidationError) Field ¶
func (e SquashValidationError) Field() string
Field function returns field value.
func (SquashValidationError) Key ¶
func (e SquashValidationError) Key() bool
Key function returns key value.
func (SquashValidationError) Reason ¶
func (e SquashValidationError) Reason() string
Reason function returns reason value.
Click to show internal directories.
Click to hide internal directories.