UNPKG

nralcm

Version:

This is a framework based on NodeJs to manage rest api request lifecycle

15 lines (14 loc) 451 B
import { HttpContext } from ".."; /** * Interface to implement ExceptionHandler * ExceptionHandler can be use for logging errors. Errors occured in Rest api that not handled * will catch by ExceptionHandler */ export interface IExceptionHandler { /** * Method for handle exception * @param context HttpContext Object * @param exception Exception Object */ handleException(context: HttpContext, exception: any): void; }