export class BaseException extends Error { status : number ; code : string ; extensions : Record < string , any > ; constructor ( message , status , code , extensions ? ) { super ( message ) ; this . status = status ; this . code = code ; this . extensions = extensions || { } ; } }