errors

package
v0.0.0-...-7501429 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidatorError

type ValidatorError struct {
	Message string
	Kind    ValidatorErrorType
}

func NewValidatorError

func NewValidatorError(message string, kind ValidatorErrorType) ValidatorError

func (ValidatorError) Error

func (v ValidatorError) Error() string

func (ValidatorError) IsNotFound

func (v ValidatorError) IsNotFound() bool

func (ValidatorError) MultipleValidators

func (v ValidatorError) MultipleValidators() bool

type ValidatorErrorType

type ValidatorErrorType int
const (
	ValidatorErrorUnknown ValidatorErrorType = iota
	ValidatorErrorNotFound
	ValidatorErrorMultiple
)

func (ValidatorErrorType) String

func (vt ValidatorErrorType) String() string

Jump to

Keyboard shortcuts

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