-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New proving agent for proving broker. Fix #9533 LE: PR 9999!!
- Loading branch information
Showing
9 changed files
with
647 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* An error thrown when generating a proof fails. | ||
*/ | ||
export class ProvingError extends Error { | ||
public static readonly NAME = 'ProvingError'; | ||
|
||
/** | ||
* 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: string, cause?: unknown, public readonly retry: boolean = false) { | ||
super(message); | ||
this.name = ProvingError.NAME; | ||
this.cause = cause; | ||
} | ||
} |
Oops, something went wrong.