"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExceedsLimitError = void 0;
const unleash_error_1 = require("./unleash-error");
class ExceedsLimitError extends unleash_error_1.GenericUnleashError {
    constructor(resource, limit) {
        super({
            name: 'ExceedsLimitError',
            message: `Failed to create ${resource}. You can't create more than the established limit of ${limit}.`,
            statusCode: 400,
        });
    }
}
exports.ExceedsLimitError = ExceedsLimitError;
//# sourceMappingURL=exceeds-limit-error.js.map