errors

package
v0.0.0-...-b80afe7 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package errors gives service broker errors type and context. This can then be used to propagate and raise appropriate errors in HTTP responses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAsyncRequiredError

func IsAsyncRequiredError(err error) bool

IsAsyncRequiredError returns whether an error is an async required error.

func IsConfigurationError

func IsConfigurationError(err error) bool

IsConfigurationError returns whether an error is a configuration error.

func IsParameterError

func IsParameterError(err error) bool

IsParameterError returns whether an error is a parameter error.

func IsQueryError

func IsQueryError(err error) bool

IsQueryError returns whether an error is a query error.

func IsResourceConflictError

func IsResourceConflictError(err error) bool

IsResourceConflictError returns whether an error is a resource conflict error.

func IsResourceGoneError

func IsResourceGoneError(err error) bool

IsResourceGoneError returns whether an error is a resource gone error.

func IsResourceNotFoundError

func IsResourceNotFoundError(err error) bool

IsResourceNotFoundError returns whether an error is a resource not found error.

func IsValidationError

func IsValidationError(err error) bool

IsValidationError returns whether an error is a validation error.

func NewAsyncRequiredError

func NewAsyncRequiredError(message string, arguments ...interface{}) error

NewAsyncRequiredError returns a new async required error formatted like fmt.Errorf.

func NewConfigurationError

func NewConfigurationError(message string, arguments ...interface{}) error

NewConfigurationError returns a new configuration error formatted like fmt.Errorf.

func NewParameterError

func NewParameterError(message string, arguments ...interface{}) error

NewParameterError returns a new parameter error formatted like fmt.Errorf.

func NewQueryError

func NewQueryError(message string, arguments ...interface{}) error

NewQueryError returns a new query error formatted like fmt.Errorf.

func NewResourceConflictError

func NewResourceConflictError(message string, arguments ...interface{}) error

NewResourceConflictError returns a new resource conflict error formatted like fmt.Errorf.

func NewResourceGoneError

func NewResourceGoneError(message string, arguments ...interface{}) error

NewResourceGoneError returns a new resource gone error formatted like fmt.Errorf.

func NewResourceNotFoundError

func NewResourceNotFoundError(message string, arguments ...interface{}) error

NewResourceNotFoundError returns a new resource not found error formatted like fmt.Errorf.

func NewValidationError

func NewValidationError(message string, arguments ...interface{}) error

NewValidationError returns a new validation error formatted like fmt.Errorf.

Types

This section is empty.

Jump to

Keyboard shortcuts

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