Index

shared/common/catch-and-log-error.decorator.ts

CatchAndLogError
CatchAndLogError(serviceName: string, rethrow)

Decorator to wrap method with try catch

Parameters :
Name Type Optional Default value Description
serviceName string No
  • name of class to for logger
rethrow No false
  • re-throw exception, default false

shared/utils/exit-handler.ts

terminate
terminate(server, options: object)
Parameters :
Name Type Optional Default value
server No
options object No { coredump: false, timeout: 500 }

results matching ""

    No results matching ""