errors

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown             errors.Kind = "unknown"
	Internal            errors.Kind = "internal"
	BadInput            errors.Kind = "bad_input"
	NotFound            errors.Kind = "not_found"
	AlreadyExists       errors.Kind = "already_exists"
	FailedPreconditions errors.Kind = "failed_preconditions"
	Unauthorized        errors.Kind = "unauthorized"
	Forbidden           errors.Kind = "forbidden"
)

Variables

View Source
var (
	// Export std errors functionality.
	Is     = stderrors.Is
	As     = stderrors.As
	Unwrap = stderrors.Unwrap
)
View Source
var (
	Get      = errors.Get
	MustLoad = errors.MustLoad
)

Functions

func ToPartial added in v0.14.0

func ToPartial[T any](err *Error) *errors.PartialError[T]

Types

type Error

type Error = errors.Error

Alias to avoid referencing the original package.

Jump to

Keyboard shortcuts

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