UNPKG

reiso

Version:
24 lines (23 loc) 1.03 kB
import * as express from 'express'; import * as Log from '../../Modules/Log'; export declare function genMessage(state: Log.ErrorState): string; export declare type SerializedError = { status: string | number; type: string; state: Log.ErrorState; message: string; originalMessage: string; title: string; typeResponse: string; code: string | number; path: Object; errors: SerializedError[]; locations?: Object; trace?: Object; }; export declare function getSerialized(error: any, type: string, map: typeof parseAndLogError, request?: express.Request, response?: express.Response): SerializedError; export declare type ApmAdditional = { typeResponse: string; }; export declare function getApmError(error: any, type?: string, request?: express.Request, response?: express.Response): [Log.LogError, Log.LogErrorApmAdditional & ApmAdditional]; export declare function parseAndLogError(error: any, type?: string, request?: express.Request, response?: express.Response): SerializedError;