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