mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
chore(async): remove redundant constructor example (#5507)
chore(async): remove constructor example
This commit is contained in:
parent
8efc049ddf
commit
a04f5ef419
@ -20,13 +20,6 @@ export class RetryError extends Error {
|
||||
*
|
||||
* @param cause the cause for this error.
|
||||
* @param attempts the number of retry attempts made.
|
||||
*
|
||||
* @example Usage
|
||||
* ```ts no-assert no-eval
|
||||
* import { RetryError } from "@std/async/retry";
|
||||
*
|
||||
* throw new RetryError({ foo: "bar" }, 3);
|
||||
* ```
|
||||
*/
|
||||
constructor(cause: unknown, attempts: number) {
|
||||
super(`Retrying exceeded the maxAttempts (${attempts}).`);
|
||||
|
Loading…
Reference in New Issue
Block a user