exception

package
v0.0.0-...-984c388 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package exception system-related errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainGeneric

type DomainGeneric struct {
	Code   string
	Parent error
}

func (DomainGeneric) Error

func (e DomainGeneric) Error() string

func (DomainGeneric) String

func (e DomainGeneric) String() string

func (DomainGeneric) TypeName

func (e DomainGeneric) TypeName() string

func (DomainGeneric) Unwrap

func (e DomainGeneric) Unwrap() error

type Exception

type Exception interface {
	error
	fmt.Stringer
	TypeName() string
}

Exception system-related error container.

func NewFromValidator

func NewFromValidator(v validator.FieldError) Exception

type InvalidParameter

type InvalidParameter struct {
	Field       string
	ValidValues string
}

func (InvalidParameter) Error

func (e InvalidParameter) Error() string

func (InvalidParameter) String

func (e InvalidParameter) String() string

func (InvalidParameter) TypeName

func (e InvalidParameter) TypeName() string

type MissingParameter

type MissingParameter struct {
	Field string
}

func (MissingParameter) Error

func (e MissingParameter) Error() string

func (MissingParameter) String

func (e MissingParameter) String() string

func (MissingParameter) TypeName

func (e MissingParameter) TypeName() string

type ParameterOutOfRange

type ParameterOutOfRange struct {
	Field string
	From  string
	To    string
	Len   string
}

func (ParameterOutOfRange) Error

func (e ParameterOutOfRange) Error() string

func (ParameterOutOfRange) String

func (e ParameterOutOfRange) String() string

func (ParameterOutOfRange) TypeName

func (e ParameterOutOfRange) TypeName() string

type ResourceNotFound

type ResourceNotFound struct {
	Resource string
}

func (ResourceNotFound) Error

func (e ResourceNotFound) Error() string

func (ResourceNotFound) String

func (e ResourceNotFound) String() string

func (ResourceNotFound) TypeName

func (e ResourceNotFound) TypeName() string

type UnhealthyNode

type UnhealthyNode struct {
	Parent error
}

func (UnhealthyNode) Error

func (u UnhealthyNode) Error() string

func (UnhealthyNode) String

func (u UnhealthyNode) String() string

func (UnhealthyNode) TypeName

func (u UnhealthyNode) TypeName() string

func (UnhealthyNode) Unwrap

func (u UnhealthyNode) Unwrap() error

type Wrapper

type Wrapper interface {
	// Unwrap retrieves parent error.
	Unwrap() error
}

Wrapper custom Exception type with parent error capabilities.

Jump to

Keyboard shortcuts

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