faults

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainError

type DomainError struct {
}

type HandlerError

type HandlerError struct {
}

type IError

type IError interface {
	error
	Code() string
	Props() map[string]string
	UnWrap() error
}

func NewRemoteError

func NewRemoteError(message string, opts ...IOption[remoteError]) IError

func NewRemoteErrorWrap

func NewRemoteErrorWrap(err error, message string, opts ...IOption[remoteError]) IError

type IOption

type IOption[T any] interface {
	// contains filtered or unexported methods
}

type IRemoteError

type IRemoteError interface {
	IError
}

type RepositoryError

type RepositoryError struct {
}

type ResultError

type ResultError struct {
	Errors []string
}

func NewResultError

func NewResultError() *ResultError

func (*ResultError) Add

func (e *ResultError) Add(msg string)

func (*ResultError) Error

func (e *ResultError) Error() string

func (*ResultError) HasError

func (e *ResultError) HasError() bool

func (*ResultError) Is

func (e *ResultError) Is(err error) bool

func (*ResultError) ToError

func (e *ResultError) ToError() error

type UseCaseError

type UseCaseError struct {
}

type ValidationError

type ValidationError struct {
	Errors []string
}

func NewValidationError

func NewValidationError() *ValidationError

func (*ValidationError) Add

func (e *ValidationError) Add(msg string)

func (*ValidationError) Error

func (e *ValidationError) Error() string

func (*ValidationError) HasError

func (e *ValidationError) HasError() bool

func (*ValidationError) ToError

func (e *ValidationError) ToError() error

Jump to

Keyboard shortcuts

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