httperrors

package
v2.2.10+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadGatewayError

func BadGatewayError(w http.ResponseWriter, msg string, params ...interface{})

func BadRequestError

func BadRequestError(w http.ResponseWriter, msg string, params ...interface{})

func ConflictError

func ConflictError(w http.ResponseWriter, msg string, params ...interface{})

func ForbiddenError

func ForbiddenError(w http.ResponseWriter, msg string, params ...interface{})

func GeneralServerError

func GeneralServerError(w http.ResponseWriter, e error)

func HTTPError

func HTTPError(w http.ResponseWriter, msg string, statusCode int, class string, error httputils.Error)

func InternalServerError

func InternalServerError(w http.ResponseWriter, msg string, params ...interface{})

func InvalidCredentialError

func InvalidCredentialError(w http.ResponseWriter, msg string, params ...interface{})

func InvalidInputError

func InvalidInputError(w http.ResponseWriter, msg string, params ...interface{})

func JsonClientError

func JsonClientError(w http.ResponseWriter, e *httputils.JSONClientError)

func MissingParameterError

func MissingParameterError(w http.ResponseWriter, param string)

func NewActionNotFoundError

func NewActionNotFoundError(msg string, params ...interface{}) *httputils.JSONClientError

func NewBadGatewayError

func NewBadGatewayError(msg string, params ...interface{}) *httputils.JSONClientError

func NewBadRequestError

func NewBadRequestError(msg string, params ...interface{}) *httputils.JSONClientError

func NewConflictError

func NewConflictError(msg string, params ...interface{}) *httputils.JSONClientError

func NewDuplicateNameError

func NewDuplicateNameError(resName string, resId string) *httputils.JSONClientError

func NewForbiddenError

func NewForbiddenError(msg string, params ...interface{}) *httputils.JSONClientError

func NewGeneralError

func NewGeneralError(err error) *httputils.JSONClientError

func NewImageNotFoundError

func NewImageNotFoundError(imageId string) *httputils.JSONClientError

func NewInputParameterError

func NewInputParameterError(msg string, params ...interface{}) *httputils.JSONClientError

func NewInsufficientResourceError

func NewInsufficientResourceError(msg string, params ...interface{}) *httputils.JSONClientError

func NewInternalServerError

func NewInternalServerError(msg string, params ...interface{}) *httputils.JSONClientError

func NewInvalidCredentialError

func NewInvalidCredentialError(msg string, params ...interface{}) *httputils.JSONClientError

func NewInvalidStatusError

func NewInvalidStatusError(msg string, params ...interface{}) *httputils.JSONClientError

func NewJsonClientError

func NewJsonClientError(code int, title string, msg string, error httputils.Error) *httputils.JSONClientError

func NewMissingParameterError

func NewMissingParameterError(paramName string) *httputils.JSONClientError

func NewNotAcceptableError

func NewNotAcceptableError(msg string, params ...interface{}) *httputils.JSONClientError

func NewNotEmptyError

func NewNotEmptyError(msg string, params ...interface{}) *httputils.JSONClientError

func NewNotFoundError

func NewNotFoundError(msg string, params ...interface{}) *httputils.JSONClientError

func NewNotImplementedError

func NewNotImplementedError(msg string, params ...interface{}) *httputils.JSONClientError

func NewNotSufficientPrivilegeError

func NewNotSufficientPrivilegeError(msg string, params ...interface{}) *httputils.JSONClientError

func NewOutOfQuotaError

func NewOutOfQuotaError(msg string, params ...interface{}) *httputils.JSONClientError

func NewOutOfResourceError

func NewOutOfResourceError(msg string, params ...interface{}) *httputils.JSONClientError

func NewPaymentError

func NewPaymentError(msg string, params ...interface{}) *httputils.JSONClientError

func NewProtectedResourceError

func NewProtectedResourceError(msg string, params ...interface{}) *httputils.JSONClientError

func NewRequireLicenseError

func NewRequireLicenseError(msg string, params ...interface{}) *httputils.JSONClientError

func NewResourceBusyError

func NewResourceBusyError(msg string, params ...interface{}) *httputils.JSONClientError

func NewResourceNotFoundError

func NewResourceNotFoundError(msg string, params ...interface{}) *httputils.JSONClientError

func NewResourceNotReadyError

func NewResourceNotReadyError(msg string, params ...interface{}) *httputils.JSONClientError

func NewServerStatusError

func NewServerStatusError(msg string, params ...interface{}) *httputils.JSONClientError

func NewSpecNotFoundError

func NewSpecNotFoundError(msg string, params ...interface{}) *httputils.JSONClientError

func NewTenantNotFoundError

func NewTenantNotFoundError(msg string, params ...interface{}) *httputils.JSONClientError

func NewTimeoutError

func NewTimeoutError(msg string, params ...interface{}) *httputils.JSONClientError

func NewUnauthorizedError

func NewUnauthorizedError(msg string, params ...interface{}) *httputils.JSONClientError

func NewUnsupportOperationError

func NewUnsupportOperationError(msg string, params ...interface{}) *httputils.JSONClientError

func NewUserNotFoundError

func NewUserNotFoundError(msg string, params ...interface{}) *httputils.JSONClientError

func NewWeakPasswordError

func NewWeakPasswordError() *httputils.JSONClientError

func NotAcceptableError

func NotAcceptableError(w http.ResponseWriter, msg string, params ...interface{})

func NotFoundError

func NotFoundError(w http.ResponseWriter, msg string, params ...interface{})

func NotImplementedError

func NotImplementedError(w http.ResponseWriter, msg string, params ...interface{})

func OutOfQuotaError

func OutOfQuotaError(w http.ResponseWriter, msg string, params ...interface{})

func PaymentError

func PaymentError(w http.ResponseWriter, msg string, params ...interface{})

func ProtectedResourceError

func ProtectedResourceError(w http.ResponseWriter, msg string, params ...interface{})

func TenantNotFoundError

func TenantNotFoundError(w http.ResponseWriter, msg string, params ...interface{})

func TimeoutError

func TimeoutError(w http.ResponseWriter, msg string, params ...interface{})

func UnauthorizedError

func UnauthorizedError(w http.ResponseWriter, msg string, params ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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