errors

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func Convert added in v1.0.1

func Convert(err error) *Error

func Forbidden

func Forbidden(format string, args ...interface{}) *Error

func InternalServer

func InternalServer(format string, args ...interface{}) *Error

func InvalidParam added in v1.0.1

func InvalidParam(format string, args ...interface{}) *Error

func NotFound

func NotFound(format string, args ...interface{}) *Error

func Sprintf

func Sprintf(code int, format string, args ...interface{}) *Error

func Timeout

func Timeout(format string, args ...interface{}) *Error

func Unauthorized

func Unauthorized(format string, args ...interface{}) *Error

func Unknown added in v1.0.1

func Unknown(format string, args ...interface{}) *Error

func WithMessage added in v1.0.1

func WithMessage(err error, message string) *Error

func (Error) Error

func (err Error) Error() string

func (*Error) WithMessage added in v1.0.1

func (err *Error) WithMessage(message string) *Error

Jump to

Keyboard shortcuts

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