pkgservice

package
v0.0.0-...-d025c41 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code int
const (
	ErrInternal Code = iota
)

func (Code) String

func (c Code) String() string

type ErrorService

type ErrorService struct {
	Code      Code
	Message   string
	Detail    string
	Raw       error
	Attribute map[string]string
}

func NewErrorService

func NewErrorService(code Code) *ErrorService

func NewErrorServiceC

func NewErrorServiceC(ctx context.Context, code Code, detail string) *ErrorService

func NewErrorServiceD

func NewErrorServiceD(code Code, detail string) *ErrorService

func NewErrorServiceDA

func NewErrorServiceDA(code Code, detail string, attr map[string]string) *ErrorService

func (*ErrorService) Error

func (e *ErrorService) Error() string

func (*ErrorService) GetAttr

func (e *ErrorService) GetAttr() map[string]string

func (*ErrorService) GetCode

func (e *ErrorService) GetCode() Code

func (*ErrorService) GetDetail

func (e *ErrorService) GetDetail() string

func (*ErrorService) GetRaw

func (e *ErrorService) GetRaw() error

func (*ErrorService) String

func (e *ErrorService) String() string

Jump to

Keyboard shortcuts

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