mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
chore(fs): remove redundant constructor examples (#5511)
chore(fs): remove constructor examples
This commit is contained in:
parent
54f6277ce2
commit
c349da2e43
@ -27,13 +27,6 @@ export class SubdirectoryMoveError extends Error {
|
||||
*
|
||||
* @param src The source file or directory as a string or URL.
|
||||
* @param dest The destination file or directory as a string or URL.
|
||||
*
|
||||
* @example Usage
|
||||
* ```ts no-eval
|
||||
* import { SubdirectoryMoveError } from "@std/fs/move";
|
||||
*
|
||||
* throw new SubdirectoryMoveError("./foo", "./foo/bar");
|
||||
* ```
|
||||
*/
|
||||
constructor(src: string | URL, dest: string | URL) {
|
||||
super(
|
||||
|
@ -50,13 +50,6 @@ export class WalkError extends Error {
|
||||
*
|
||||
* @param cause The cause of the error.
|
||||
* @param root The root directory that's being walked.
|
||||
*
|
||||
* @example Usage
|
||||
* ```ts no-eval
|
||||
* import { WalkError } from "@std/fs/walk";
|
||||
*
|
||||
* throw new WalkError("error message", "./foo");
|
||||
* ```
|
||||
*/
|
||||
constructor(cause: unknown, root: string) {
|
||||
super(
|
||||
|
Loading…
Reference in New Issue
Block a user