Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 | 1x 1x 1x 1x 1x 1x 1x | import {ReasonPhrases, StatusCodes} from "http-status-codes";
import {isSet} from "node:util/types";
import i18n from "i18n";
export default class ServiceUnavailableException {
constructor(message = null) {
this.code = ReasonPhrases.SERVICE_UNAVAILABLE;
this.status = StatusCodes.SERVICE_UNAVAILABLE;
this.message = isSet(message) ? message : i18n.__('server.error.unavailable');
}
} |