export class HatchError extends Error {
    code;
    cause;
    constructor(code, message, cause) {
        super(message, cause === undefined ? undefined : { cause });
        this.code = code;
        this.cause = cause;
        this.name = "HatchError";
        Object.setPrototypeOf(this, new.target.prototype);
    }
}
