ierr

package
v0.0.0-...-551f129 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package ierr provides helpers for common errors when implementing service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(format string, a ...interface{}) error

BadRequest is used with invalid request arguments

func Canceled

func Canceled(format string, a ...interface{}) error

Canceled is used when the processing is canceled explicitly

func Internal

func Internal(format string, a ...interface{}) error

Internal should be used with care because it will trigger a client retry

func NotFound

func NotFound(format string, a ...interface{}) error

NotFound is used when the requested resource does not exist

func PollTimeout

func PollTimeout(format string, a ...interface{}) error

PollTimeout is used when timeout event happens during long-polling. The difference from 408 is that the latter will trigger a client retry.

func Storage

func Storage(format string, a ...interface{}) error

Storage is used with any database reported errors

Types

This section is empty.

Jump to

Keyboard shortcuts

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