Documentation ¶
Index ¶
- func Error(w http.ResponseWriter, err error)
- func NewBadRequestError(msg string) error
- func NewForbiddenError(msg string) error
- func NewNotFoundError(msg string) error
- func Response(w http.ResponseWriter, data interface{})
- func WrapBadRequestError(err error, msg string) error
- func WrapForbiddenError(err error, msg string) error
- func WrapNotFoundError(err error, msg string) error
- type ErrorResponse
- type StackTracer
- type StateError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(w http.ResponseWriter, err error)
func NewBadRequestError ¶
func NewForbiddenError ¶
func NewNotFoundError ¶
func Response ¶
func Response(w http.ResponseWriter, data interface{})
func WrapBadRequestError ¶
func WrapForbiddenError ¶
func WrapNotFoundError ¶
Types ¶
type ErrorResponse ¶
type StackTracer ¶
type StackTracer interface {
StackTrace() errors.StackTrace
}
type StateError ¶
type StateError interface { error Code() int StackTracer }
Click to show internal directories.
Click to hide internal directories.