UNPKG

@nestjs/terminus

Version:

Terminus integration provides readiness/liveness health checks for NestJS.

25 lines 849 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StorageExceededError = void 0; const messages_constant_1 = require("./messages.constant"); const health_check_error_1 = require("../health-check/health-check.error"); /** * Error which gets thrown when the given storage threshold * has exceeded. * @publicApi */ class StorageExceededError extends health_check_error_1.HealthCheckError { /** * Initializes the error * * @param {string} keyword The keyword (heap, rss, disk e.g.) * @param {any} cause The cause of the health check error * * @internal */ constructor(keyword, cause) { super((0, messages_constant_1.STORAGE_EXCEEDED)(keyword), cause); } } exports.StorageExceededError = StorageExceededError; //# sourceMappingURL=storage-exceeded.error.js.map