errors

package
v1.0.0-beta.10 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	As = errors.As
	Is = errors.Is
)

Functions

func Aborted

func Aborted(format string, args ...any) error

Aborted constructs conflict error (HTTP: 409).

func AlreadyExists

func AlreadyExists(format string, args ...any) error

AlreadyExists construct conflict error (HTTP: 409).

func DeadlineExceeded

func DeadlineExceeded(format string, args ...any) error

DeadlineExceeded constructs timeout error (HTTP: 504).

func Internal

func Internal(format string, args ...any) error

Internal constructs internal server error (HTTP: 500).

func InvalidArgument

func InvalidArgument(format string, args ...any) error

InvalidArgument constructs bad request error (HTTP: 400).

func MethodNotAllowed

func MethodNotAllowed(format string, args ...any) error

MethodNotAllowed constructs method not allowed error (HTTP: 405).

func NotFound

func NotFound(format string, args ...any) error

NotFound constructs not found error (HTTP: 404).

func PermissionDenied

func PermissionDenied(format string, args ...any) error

PermissionDenied constructs forbidden error (HTTP: 403).

func ResourceExhausted

func ResourceExhausted(format string, args ...any) *api.TigrisError

ResourceExhausted constructs too many requests error (HTTP: 429).

func Unauthenticated

func Unauthenticated(format string, args ...any) error

Unauthenticated construct unauthorized error (HTTP: 401).

func Unimplemented

func Unimplemented(format string, args ...any) error

Unimplemented constructs not implemented error (HTTP: 501).

func Unknown

func Unknown(format string, args ...any) error

Unknown constructs internal server error (HTTP: 500).

Types

This section is empty.

Jump to

Keyboard shortcuts

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