Documentation ¶
Index ¶
- Variables
- type Base
- func (b *Base) Error(err error, httpStatus int) revel.Result
- func (b *Base) ErrorBadRequest() revel.Result
- func (b *Base) ErrorInternal() revel.Result
- func (b *Base) ErrorInternalMsg(msg string) revel.Result
- func (b *Base) ErrorNotFound() revel.Result
- func (b *Base) ErrorNotFoundMsg(msg string) revel.Result
- func (b *Base) ErrorNotImplemented() revel.Result
- func (b *Base) FromJson(obj interface{}, validator func(interface{}, *revel.Validation)) revel.Result
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ERROR_JSON_INPUT = errors.New("Invalid JSON input.") ERROR_INTERNAL = errors.New("Unexpected internal server error.") ERROR_DATABASE = errors.New("Database error.") ERROR_NOT_FOUND = errors.New("Not found.") ERROR_NO_ACTION = errors.New("Action not found.") ERROR_NOT_IMPLEMENTED = errors.New("Action not implemented.") ERROR_BAD_REQUEST = errors.New("Bad request.") )
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
*revel.Controller
}
func (*Base) ErrorBadRequest ¶
func (*Base) ErrorInternal ¶
func (*Base) ErrorNotFound ¶
func (*Base) ErrorNotImplemented ¶
Click to show internal directories.
Click to hide internal directories.