File tree Expand file tree Collapse file tree 6 files changed +4
-44
lines changed Expand file tree Collapse file tree 6 files changed +4
-44
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33analyzing a package and extracting its API.
44*/
55export type ExtractorError =
6- | OsError
76 | FsError
87 | InstallPackageError
98 | PackageNameError
@@ -12,19 +11,10 @@ export type ExtractorError =
1211 | PackageDeclarationsError
1312 | ProjectError ;
1413
15- /**
16- `OsError` is thrown when an operation involving `process` fails.
17- */
18- export class OsError extends Error {
19- constructor ( message : string , options ?: ErrorOptions ) {
20- // For all errors see the following links:
21- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#differentiate_between_similar_errors
22- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause
23- // https://stackoverflow.com/questions/1382107/whats-a-good-way-to-extend-error-in-javascript
24- super ( message , options ) ;
25- this . name = this . constructor . name ;
26- }
27- }
14+ // For all errors see the following links:
15+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#differentiate_between_similar_errors
16+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause
17+ // https://stackoverflow.com/questions/1382107/whats-a-good-way-to-extend-error-in-javascript
2818
2919/**
3020`FsError` is thrown when an operation involving the file system fails.
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ export type {
55export {
66 FsError ,
77 InstallPackageError ,
8- OsError ,
98 PackageDeclarationsError ,
109 PackageJsonError ,
1110 PackageNameError ,
You can’t perform that action at this time.
0 commit comments