errors

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReasonForError

func ReasonForError(err error) string

Types

type BusinessError

type BusinessError interface {
	Error() string
	Status() string
}

type BusinessErrorImpl

type BusinessErrorImpl struct {
	Reason  string
	Message string
}

func NewBusinessError

func NewBusinessError(
	reason string,
	message string,
) *BusinessErrorImpl

func (*BusinessErrorImpl) Error

func (e *BusinessErrorImpl) Error() string

func (*BusinessErrorImpl) Status

func (e *BusinessErrorImpl) Status() string

type BusinessErrorStatus

type BusinessErrorStatus interface {
	Status() string
}

Jump to

Keyboard shortcuts

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