@commodo/fields-storage
Version:
We're working hard to get all the docs in order. New articles will be added daily.
27 lines (23 loc) • 884 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
const MAX_PER_PAGE_EXCEEDED = "MAX_PER_PAGE_EXCEEDED";
const POPULATE_FAILED_NOT_OBJECT = "POPULATE_FAILED_NOT_OBJECT";
const CANNOT_DELETE_NO_ID = "CANNOT_DELETE_NO_ID";
const STORAGE_DRIVER_MISSING = "STORAGE_DRIVER_MISSING";
class WithStorageError extends Error {
constructor(message = "", code = "", data = null) {
super();
this.message = message;
this.code = code;
this.data = data;
}
}
exports.default = WithStorageError;
WithStorageError.MAX_PER_PAGE_EXCEEDED = MAX_PER_PAGE_EXCEEDED;
WithStorageError.POPULATE_FAILED_NOT_OBJECT = POPULATE_FAILED_NOT_OBJECT;
WithStorageError.CANNOT_DELETE_NO_ID = CANNOT_DELETE_NO_ID;
WithStorageError.CANNOT_STORAGE_DRIVER_MISSINGDELETE_NO_ID = STORAGE_DRIVER_MISSING;
//# sourceMappingURL=WithStorageError.js.map