Skip to content

Commit

Permalink
chore(errors): switch to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Feb 5, 2021
1 parent 0d619f7 commit 2c0f522
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/lib/errors.js

This file was deleted.

5 changes: 5 additions & 0 deletions src/lib/errors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export class BadRequestError extends Error { name = 'BadRequestError' }
export class HTTPError extends Error { name = 'HTTPError' }
export class FailedYahooValidationError extends Error { name = 'FailedYahooValidationError' }
export class InvalidOptionsError extends Error { name = 'InvalidOptionsError' }
export class NoEnvironmentError extends Error { name = 'NoEnvironmentError' }

0 comments on commit 2c0f522

Please sign in to comment.