snapi2
Version:
An API-first RESTful server framework built on Swagger and Restify
37 lines (30 loc) • 1.44 kB
JavaScript
// Generated by CoffeeScript 1.12.7
;
var MissingApiConfigError, MissingRouteHandlerError, MissingRouteHandlersConfigError;
exports.MissingApiConfigError = MissingApiConfigError = function() {
var self;
self = new Error("Required parameter 'api' not specified. Must be an object or the path to your API documentation.");
self.name = 'MissingApiConfig';
self.__proto__ = MissingApiConfigError.prototype;
return self;
};
MissingApiConfigError.prototype.__proto__ = Error.prototype;
exports.MissingRouteHandlersConfigError = MissingRouteHandlersConfigError = function() {
var self;
self = new Error("Required parameter 'routeHandlers' not specified. Must be an object or the path to a module.");
self.name = 'MissingRouteHandlersConfig';
self.__proto__ = MissingRouteHandlersConfigError.prototype;
return self;
};
MissingRouteHandlersConfigError.prototype.__proto__ = Error.prototype;
exports.MissingRouteHandlerError = MissingRouteHandlerError = function(operation) {
var self;
self = new Error("No handler found for " + operation.method + " " + operation.path + ", operation ID " + operation.operationId + ".");
self.name = 'MissingRouteHandler';
self.path = operation.path;
self.method = operation.method;
self.operationId = operation.operationId;
self.__proto__ = MissingRouteHandlerError.prototype;
return self;
};
MissingRouteHandlerError.prototype.__proto__ = Error.prototype;