errs

package
v1.2.11 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	PermissionDenied = ErrorCode(codes.PermissionDenied)
	NotFound         = ErrorCode(codes.NotFound)
	InvalidArgument  = ErrorCode(codes.InvalidArgument)
	Internal         = ErrorCode(codes.Internal)
	Unauthenticated  = ErrorCode(codes.Unauthenticated)
)

Variables

Functions

This section is empty.

Types

type Error

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

func New

func New(msg string, code ErrorCode) *Error

func (*Error) Code

func (e *Error) Code() ErrorCode

func (*Error) Error

func (e *Error) Error() string

func (*Error) Message

func (e *Error) Message() string

type ErrorCode

type ErrorCode codes.Code

Jump to

Keyboard shortcuts

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