Skip to content

Commit

Permalink
Document ParameterError
Browse files Browse the repository at this point in the history
  • Loading branch information
colincasey committed Apr 12, 2024
1 parent 827538a commit dd69643
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ docs/*.md

# subsequent PRs will un-ignore areas that are under review until
# all docs are complete and we can drop this ignore file entirely
!docs/tough-cookie.parametererror.md
!docs/tough-cookie.permutepath.md
!docs/tough-cookie.version.md
!docs/tough-cookie.parsedate.md
Expand Down
15 changes: 15 additions & 0 deletions api/docs/tough-cookie.parametererror.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [tough-cookie](./tough-cookie.md) &gt; [ParameterError](./tough-cookie.parametererror.md)

## ParameterError class

Represents a validation error.

**Signature:**

```typescript
export declare class ParameterError extends Error
```
**Extends:** Error
2 changes: 1 addition & 1 deletion api/tough-cookie.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export class MemoryCookieStore extends Store {
updateCookie(oldCookie: Cookie, newCookie: Cookie, callback: ErrorCallback): void;
}

// @public (undocumented)
// @public
export class ParameterError extends Error {
}

Expand Down
4 changes: 4 additions & 0 deletions lib/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,8 @@ export function validate(
else throw err
}

/**
* Represents a validation error.
* @public
*/
export class ParameterError extends Error {}

0 comments on commit dd69643

Please sign in to comment.