InvalidVOError

package
v0.0.0-...-e0e71cc Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

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

Instance represents container for ValueObject errors.

func New

func New() *Instance

New gets new InvalidVOError instance.

func (Instance) Error

func (i Instance) Error() string

Error gets InvalidVOError error message string.

func (Instance) GetErrors

func (i Instance) GetErrors() map[string]string

GetErrors gets map with InvalidVOError's errors.

func (Instance) IsEmpty

func (i Instance) IsEmpty() bool

IsEmpty returns true in case when errors map is empty.

func (*Instance) SetError

func (i *Instance) SetError(key string, err string)

SetError sets VO error.

Jump to

Keyboard shortcuts

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