Skip to content

Commit

Permalink
docs: hide the error constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Oct 7, 2024
1 parent 5fa774d commit a1cb7f8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,9 @@ class LRU<T1, T2> {
* @group Errors
*/
export class UnsupportedOperationError extends Error {
/**
* @ignore
*/
constructor(message?: string) {
super(message ?? 'operation not supported')
this.name = this.constructor.name
Expand All @@ -1127,6 +1130,9 @@ export class UnsupportedOperationError extends Error {
export class OperationProcessingError extends Error {
code?: string

/**
* @ignore
*/
constructor(message?: string, options?: { cause?: unknown; code?: string }) {
super(message, options)
this.name = this.constructor.name
Expand Down Expand Up @@ -2179,6 +2185,9 @@ export class ResponseBodyError extends Error {
*/
response!: Response

/**
* @ignore
*/
constructor(
message: string,
options: {
Expand Down Expand Up @@ -2227,6 +2236,9 @@ export class AuthorizationResponseError extends Error {
*/
error_description?: string

/**
* @ignore
*/
constructor(
message: string,
options: {
Expand Down Expand Up @@ -2275,6 +2287,9 @@ export class WWWAuthenticateChallengeError extends Error {
*/
status: number

/**
* @ignore
*/
constructor(message: string, options: { cause: WWWAuthenticateChallenge[]; response: Response }) {
super(message, options)
this.name = this.constructor.name
Expand Down

0 comments on commit a1cb7f8

Please sign in to comment.