errors

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = NotFoundError{sql.ErrNoRows}
View Source
var PointerModelExpectedErr = PointerModelExpectedError{}

Functions

This section is empty.

Types

type DefaultValidationError

type DefaultValidationError struct {
	// contains filtered or unexported fields
}

func (DefaultValidationError) Error

func (d DefaultValidationError) Error() string

func (DefaultValidationError) Key

type FormatInvalidError

type FormatInvalidError struct {
	// contains filtered or unexported fields
}

func NewFormatInvalidError

func NewFormatInvalidError(key string, v string) *FormatInvalidError

func (FormatInvalidError) Error

func (f FormatInvalidError) Error() string

func (FormatInvalidError) Key

func (f FormatInvalidError) Key() string

type MustOneOfError

type MustOneOfError struct {
	// contains filtered or unexported fields
}

func NewMustOneOfError

func NewMustOneOfError(key string, values []fmt.Stringer, value string) *MustOneOfError

func (MustOneOfError) Error

func (f MustOneOfError) Error() string

func (MustOneOfError) Key

func (f MustOneOfError) Key() string

type NotFoundError

type NotFoundError struct {
	// contains filtered or unexported fields
}

func (NotFoundError) Error

func (e NotFoundError) Error() string

type NotStructError

type NotStructError struct {
	// contains filtered or unexported fields
}

func NewNotStructError

func NewNotStructError(v any) *NotStructError

func (NotStructError) Error

func (n NotStructError) Error() string

func (NotStructError) Key

func (n NotStructError) Key() string

type PointerModelExpectedError

type PointerModelExpectedError struct {
	// contains filtered or unexported fields
}

func NewPointerModelExpectedError

func NewPointerModelExpectedError(m any) PointerModelExpectedError

func (PointerModelExpectedError) Error

type RequiredError

type RequiredError struct {
	// contains filtered or unexported fields
}

func NewRequiredError

func NewRequiredError(key string) *RequiredError

func (RequiredError) Error

func (f RequiredError) Error() string

func (RequiredError) Key

func (f RequiredError) Key() string

type ValidationError

type ValidationError interface {
	Key() string
	Error() string
}

func NewValidationError

func NewValidationError(key string, v string) ValidationError

Jump to

Keyboard shortcuts

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