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

Method createExceptionProxy

packages/core/nest-factory.ts:271–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269 }
270
271 private createExceptionProxy() {
272 return (receiver: Record<string, any>, prop: string) => {
273 if (!(prop in receiver)) {
274 return;
275 }
276 if (isFunction(receiver[prop])) {
277 return this.createExceptionZone(receiver, prop);
278 }
279 return receiver[prop];
280 };
281 }
282
283 private createExceptionZone(
284 receiver: Record<string, any>,

Callers 1

createProxyMethod · 0.95

Calls 2

createExceptionZoneMethod · 0.95
isFunctionFunction · 0.90

Tested by

no test coverage detected