-
-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8385eee
commit cfe294c
Showing
5 changed files
with
1,045 additions
and
1,074 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* eslint-disable max-classes-per-file */ | ||
export class GitbeakerRequestError extends Error { | ||
constructor( | ||
message: string, | ||
options?: { | ||
cause: { | ||
description: string; | ||
request: Request; | ||
response: Response; | ||
}; | ||
}, | ||
) { | ||
super(message, options); | ||
|
||
this.name = 'GitbeakerRequestError'; | ||
} | ||
} | ||
|
||
export class GitbeakerTimeoutError extends Error { | ||
constructor(message: string) { | ||
super(message); | ||
this.name = 'GitbeakerTimeoutError'; | ||
} | ||
} | ||
|
||
export class GitbeakerRetryError extends Error { | ||
constructor(message: string) { | ||
super(message); | ||
this.name = 'GitbeakerTimeoutError'; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './RequesterUtils'; | ||
export * from './BaseResource'; | ||
export * from './GitbeakerError'; |
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
Oops, something went wrong.