errors

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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