"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StaticThrowHandler = void 0;
const AsyncHandler_1 = require("./AsyncHandler");
/**
 * Utility handler that can handle all input and always throws the given error.
 */
class StaticThrowHandler extends AsyncHandler_1.AsyncHandler {
    error;
    constructor(error) {
        super();
        this.error = error;
    }
    async handle() {
        throw this.error;
    }
}
exports.StaticThrowHandler = StaticThrowHandler;
//# sourceMappingURL=StaticThrowHandler.js.map