customerror

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutOfRange = 11 // codes.OutOfRange

)

Variables

This section is empty.

Functions

func Denied

func Denied(err error, message ...string) error

func InvalidInput

func InvalidInput(err error, message ...string) error

func Locked

func Locked(err error, message ...string) error

func NotFound

func NotFound(err error, message ...string) error

func PreConditionFailed

func PreConditionFailed(err error, message ...string) error

func StatusCodeFrom

func StatusCodeFrom(err error) int

func Unauthenticated

func Unauthenticated(err error, message ...string) error

func Unavailable

func Unavailable(err error, message ...string) error

func Wrap

func Wrap(err error) error

Types

type CustomError

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

func (*CustomError) Error

func (e *CustomError) Error() string

Jump to

Keyboard shortcuts

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