@cashfarm/tractor
Version:
A Hapi server with superpowers
13 lines • 451 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const plow_1 = require("@cashfarm/plow");
class NotFoundResponse {
constructor(resourceName, id) {
this.id = id;
if (id instanceof plow_1.Identity)
this.id = id.toString();
this.message = `${resourceName} with id ${this.id} could not be found`;
}
}
exports.NotFoundResponse = NotFoundResponse;
//# sourceMappingURL=notFound.js.map