squashv3

package
v0.0.0-...-e2f41ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL