Class: Responder
| Defined in: | src/responder.coffee |
Direct Known Subclasses
Instance Method Summary
- - (void) success(req, res, data) All went well, and (usually) some data is returned.
- - (void) fail(req, res, errors) There was a problem with the data submitted, or some pre-condition of the API call wasn't satisfied API returns errors to be reported.
- - (void) error(req, res, error) An error occurred in processing the request, i.e.
Instance Method Details
- (void) success(req, res, data)
All went well, and (usually) some data is returned.
- (void) fail(req, res, errors)
There was a problem with the data submitted, or some pre-condition of the API call wasn't satisfied API returns errors to be reported.
- (void) error(req, res, error)
An error occurred in processing the request, i.e. an exception was thrown.