stderr

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUC

func NewUC(c, m string) error

NewUC return pointer to UC using given code and message as the constructor.

func NewUCErr

func NewUCErr(c string, err error) error

NewUCErr return pointer to UC using given code and err as the code and message respectively.

Types

type UC

type UC struct {
	Code string
	Msg  string
}

UC standard error object that may be returned by use case layer.

func (*UC) Error

func (u *UC) Error() string

Error implement error interface.

Jump to

Keyboard shortcuts

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