summaryrefslogtreecommitdiff
path: root/js/mkdir_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-09-09 19:28:56 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-09-09 23:12:22 -0400
commit8090fb252b434db986256651304cab04e0d426f8 (patch)
tree2d0065530e0762e4952287f8628a7de9ae7ecbed /js/mkdir_test.ts
parenta4f1b367b9314b1526c51dad593cac1682ef996b (diff)
Expose deno.ErrorKind
Originally we planned to have a JS class for each error code. But it seems better to just have a single DenoError class with a "kind" property. One nice thing about using an enum instead of classes for errors is that switch() can be used during error handling instead of a bunch of instanceof branches.
Diffstat (limited to 'js/mkdir_test.ts')
0 files changed, 0 insertions, 0 deletions