diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-09-04 12:23:38 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-09-05 08:45:55 -0400 |
commit | 10dc71133af211de40e29e7a7ab8c470a4a2c417 (patch) | |
tree | f44cd8d8dc430f22cec974ac4ccd4490453de20b /js/errors.ts | |
parent | 2c0d00840d09ce6d8f2b8615c9682ce4dfbfdb9d (diff) |
Mark APIs at internal and include JSDoc in types
Diffstat (limited to 'js/errors.ts')
-rw-r--r-- | js/errors.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/errors.ts b/js/errors.ts index 2fca10eaf..11d4cd509 100644 --- a/js/errors.ts +++ b/js/errors.ts @@ -1,5 +1,6 @@ import { deno as fbs } from "gen/msg_generated"; +// @internal export class DenoError<T extends fbs.ErrorKind> extends Error { constructor(readonly kind: T, msg: string) { super(msg); @@ -7,6 +8,7 @@ export class DenoError<T extends fbs.ErrorKind> extends Error { } } +// @internal export function maybeThrowError(base: fbs.Base): void { const kind = base.errorKind(); if (kind !== fbs.ErrorKind.NoError) { |