Documentation ¶
Overview ¶
Package ierr provides helpers for common errors when implementing service.
Index ¶
- func BadRequest(format string, a ...interface{}) error
- func Canceled(format string, a ...interface{}) error
- func Internal(format string, a ...interface{}) error
- func NotFound(format string, a ...interface{}) error
- func PollTimeout(format string, a ...interface{}) error
- func Storage(format string, a ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
BadRequest is used with invalid request arguments
func PollTimeout ¶
PollTimeout is used when timeout event happens during long-polling. The difference from 408 is that the latter will trigger a client retry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.