# GlobalErrorHandlerMiddleware Class

Module
import { GlobalErrorHandlerMiddleware } from "@tsed/common"
Source/packages/common/src/server/components/GlobalErrorHandlerMiddleware.ts

# Overview

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

# Members

protected headerName: string

use(error: any, request: Req, response: Res): any

setHeaders(response: Express.Response, ...args: IResponseError[]): void