/**
 * An error thrown when generating a proof fails.
 */
export class ProvingError extends Error {
    /**
     * Creates a new instance
     * @param message - The error message.
     * @param cause - The cause of the error.
     * @param retry - Whether the proof should be retried.
     */
    constructor(message, cause, retry = false) {
        super(message);
        this.retry = retry;
        this.name = ProvingError.NAME;
        this.cause = cause;
    }
}
ProvingError.NAME = 'ProvingError';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmluZ19lcnJvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9wcm92aW5nX2Vycm9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxPQUFPLFlBQWEsU0FBUSxLQUFLO0lBR3JDOzs7OztPQUtHO0lBQ0gsWUFBWSxPQUFlLEVBQUUsS0FBZSxFQUFrQixRQUFpQixLQUFLO1FBQ2xGLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUQ2QyxVQUFLLEdBQUwsS0FBSyxDQUFpQjtRQUVsRixJQUFJLENBQUMsSUFBSSxHQUFHLFlBQVksQ0FBQyxJQUFJLENBQUM7UUFDOUIsSUFBSSxDQUFDLEtBQUssR0FBRyxLQUFLLENBQUM7SUFDckIsQ0FBQzs7QUFac0IsaUJBQUksR0FBRyxjQUFjLENBQUMifQ==