import { BshbErrorType } from './bshb-error-type'; /** * Error object used by the library * * @author Christopher Holomek * @since 06.01.2020 */ export declare class BshbError extends Error { errorType: BshbErrorType; cause?: (Error | unknown) | undefined; /** * Create a new error instance * * @param message * textual message * @param errorType * type of the error to provide more details * @param cause * reason for the error (optional) */ constructor(message: string, errorType: BshbErrorType, cause?: (Error | unknown) | undefined); }