/**
 * CustomExceptions must extend this Exception
 */ export abstract class CustomException extends Error { innerException : Error ; type : string ; constructor ( message , ex ? ) { super ( message ) ; this . innerException = ex ; Object . setPrototypeOf ( this , new . target . prototype ) ; } }