errors

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var None = Error{Message: "success"}

Functions

func GetServiceErrorCode

func GetServiceErrorCode(err error) int

func New

func New(format string, args ...interface{}) error

func Wrap

func Wrap(err error) error

Types

type Error

type Error struct {
	Message string `json:"message" description:"error message"`
}

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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