catch-async-wrapper-express
Version:
middleware for handling exceptions inside of async express routes and passing them to your express or custom error handlers
14 lines • 401 B
TypeScript
import type { ErrorCodes } from './types';
interface ErrorBody {
localErrorHandlerError: any;
error: any;
}
export declare class CatchAsyncError extends Error {
message: string;
code: ErrorCodes;
error: ErrorBody;
name: string;
constructor(message: string, code: ErrorCodes, error: ErrorBody);
}
export default CatchAsyncError;
//# sourceMappingURL=CatchAsyncError.d.ts.map