Documentation ¶
Overview ¶
Package errs of the Dataflow kit lists specific error types like ParseError, BadPayload. When trying to differentiate between different errors or to carry helpful payload own types are needed.
Index ¶
Constants ¶
View Source
const ( ErrNoParts = "no parts found" ErrNoSelectors = "no selectors found" ErrEmptyResults = "empty results" ErrNoCommonAncestor = "no common ancestor for selectors found" ErrNoPartOrSelectorProvided = "no selector/name provided for %s" )
View Source
const ( EOF = "End of payload results" NextPage = "Next page results" NoKey = "Key %s not found" )
Exported Storage Result errors
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadPayload ¶
type BadPayload struct {
ErrText string
}
BadPayload error is returned if Payload is invalid 400
func (BadPayload) Error ¶
func (e BadPayload) Error() string
func (BadPayload) Status ¶
func (e BadPayload) Status() int
type ErrStorageResult ¶
type ErrStorageResult struct {
Err string
}
ErrStorageResult represent storage results reader errors
func (*ErrStorageResult) Error ¶
func (e *ErrStorageResult) Error() string
type Error ¶
Error represents a handler error. It provides methods for a HTTP status code and embeds the built-in error interface.
type ParseError ¶
func (ParseError) Error ¶
func (e ParseError) Error() string
type StatusError ¶
StatusError represents an error with an associated HTTP status code.
func (StatusError) Error ¶
func (se StatusError) Error() string
Allows StatusError to satisfy the error interface.
Click to show internal directories.
Click to hide internal directories.