summaryrefslogtreecommitdiff
path: root/std/encoding
diff options
context:
space:
mode:
Diffstat (limited to 'std/encoding')
-rw-r--r--std/encoding/yaml/error.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/std/encoding/yaml/error.ts b/std/encoding/yaml/error.ts
index 62be8b477..7f305ccf2 100644
--- a/std/encoding/yaml/error.ts
+++ b/std/encoding/yaml/error.ts
@@ -5,14 +5,12 @@
import { Mark } from "./mark.ts";
-const { DenoError, ErrorKind } = Deno;
-
-export class YAMLError extends DenoError<typeof ErrorKind.Other> {
+export class YAMLError extends Error {
constructor(
message = "(unknown reason)",
protected mark: Mark | string = ""
) {
- super(ErrorKind.Other, `${message} ${mark}`);
+ super(`${message} ${mark}`);
this.name = this.constructor.name;
}