summaryrefslogtreecommitdiff
path: root/js/errors.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/errors.ts')
-rw-r--r--js/errors.ts2
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) {