# GlobalErrorHandlerMiddleware Class

Module
import { GlobalErrorHandlerMiddleware } from "@tsed/common"
Source/packages/common/src/platform-express/middlewares/GlobalErrorHandlerMiddleware.ts

# Overview

class GlobalErrorHandlerMiddleware implements IMiddlewareError {
    protected headerName: string;
    use(error: any, request: Req, response: Res): any;
    setHeaders(response: Res, ...args: IResponseError[]): void;
}