UNPKG

caccl-error

Version:

A simple, standardized error class for all modules in the CACCL library

26 lines (25 loc) 637 B
/** * Custom CACCL error that contains a message and code * @author Gabe Abrams */ declare class CACCLError extends Error { message: string; name: string; code: string; stack: string; isCACCLError: boolean; /** * Create a new CACCL error * @author Gabe Abrams * @param opts object containing all arguments * @param [opts.message] error message * @param [opts.code] error code * @param [opts.stack] stack trace to associate with the error */ constructor(opts: { message?: string; code?: string; stack?: string; }); } export default CACCLError;