diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-21 10:36:13 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-21 10:36:13 -0500 |
| commit | dd8a10948195f231a6a9eb652e3f208813904ad6 (patch) | |
| tree | f9a4afeb67bbead882c29c2458a5f1f99e2e42db /std/encoding/yaml | |
| parent | d9efb8c02a0036d755c35e8e9c88d58bd45a9e2b (diff) | |
refactor: remove unneeded ErrorKinds (#3936)
Diffstat (limited to 'std/encoding/yaml')
| -rw-r--r-- | std/encoding/yaml/error.ts | 6 |
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; } |
