errhelper

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrString

type ErrString string

ErrString is a string type implementing error type

func (ErrString) Error

func (s ErrString) Error() string

type InvalidValue added in v0.12.0

type InvalidValue struct {
	// Type is the type or format the Value supposed to be.
	Type string

	// Partial When set to true, means the Value contains a invalid part,
	// and that part is meant to be a Type value.
	Partial bool

	// Value is the actual bad value.
	Value string
}

func (*InvalidValue) Error added in v0.12.0

func (v *InvalidValue) Error() string

Error implements error.

  • When v.Partial is true: "$v.Value contains invalid $v.Type value"
  • When v.Partial is false: "$v.Value is not a valid %v.Type value"

Jump to

Keyboard shortcuts

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