MCPcopy
hub / github.com/nestjs/nest / createExceptionZone

Method createExceptionZone

packages/core/nest-factory.ts:283–301  ·  view source on GitHub ↗
(
    receiver: Record<string, any>,
    prop: string,
  )

Source from the content-addressed store, hash-verified

281 }
282
283 private createExceptionZone(
284 receiver: Record<string, any>,
285 prop: string,
286 ): Function {
287 const teardown = this.abortOnError === false ? rethrow : undefined;
288
289 return (...args: unknown[]) => {
290 let result: unknown;
291 ExceptionsZone.run(
292 () => {
293 result = receiver[prop](...args);
294 },
295 teardown,
296 this.autoFlushLogs,
297 );
298
299 return result;
300 };
301 }
302
303 private registerLoggerConfiguration(
304 options: NestApplicationContextOptions | undefined,

Callers 2

createExceptionProxyMethod · 0.95
createAdapterProxyMethod · 0.95

Calls 1

runMethod · 0.80

Tested by

no test coverage detected