Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessDenied ¶
type AccessDenied string
func (AccessDenied) Error ¶
func (ad AccessDenied) Error() string
func (AccessDenied) StatusCode ¶
func (ad AccessDenied) StatusCode() int
type BadRequest ¶
type BadRequest string
func (BadRequest) Error ¶
func (br BadRequest) Error() string
func (BadRequest) StatusCode ¶
func (br BadRequest) StatusCode() int
type ErrorData ¶
type ErrorData struct {
Code int `json:"code"`
File string `json:"file,omitempty"`
Line int `json:"line,omitempty"`
Message string `json:"message"`
Debug bool `json:"debug,omitempty"`
Recovered bool `json:"recovered,omitempty"`
Fatal bool `json:"fatal,omitempty"`
Traces []Trace `json:"traces,omitempty"`
Errors validation.ValidateError `json:"errors,omitempty"`
}
func ParseError ¶ added in v0.0.15
type ErrorHandler ¶
type ErrorHandler interface {
HandleError(e interface{}, r contracts.RequestContract, recovered bool) contracts.ResponseContract
}
type StandardErrorHandler ¶
type StandardErrorHandler struct {
Debug bool
}
func (*StandardErrorHandler) HandleError ¶
func (h *StandardErrorHandler) HandleError(e interface{}, r contracts.RequestContract, recovered bool) contracts.ResponseContract
type Unauthorized ¶
type Unauthorized string
func (Unauthorized) Error ¶
func (u Unauthorized) Error() string
func (Unauthorized) StatusCode ¶
func (u Unauthorized) StatusCode() int
type UnprocessableEntity ¶
type UnprocessableEntity string
func (UnprocessableEntity) Error ¶
func (u UnprocessableEntity) Error() string
func (UnprocessableEntity) StatusCode ¶
func (u UnprocessableEntity) StatusCode() int
Click to show internal directories.
Click to hide internal directories.