mirror of
https://github.com/denoland/deno.git
synced 2025-08-27 05:54:36 +00:00
feat: add more Deno.errors classes (#19514)
This commit adds following new error classes: - `Deno.errors.NotADirectory` - `Deno.errors.FilesystemLoop` - `Deno.errors.IsADirectory` - `Deno.errors.NetworkUnreachable` Closes https://github.com/denoland/deno/issues/19408
This commit is contained in:
parent
673cdd7149
commit
0434e04177
3 changed files with 50 additions and 1 deletions
|
@ -251,6 +251,10 @@ core.registerErrorClass("BadResource", errors.BadResource);
|
|||
core.registerErrorClass("Http", errors.Http);
|
||||
core.registerErrorClass("Busy", errors.Busy);
|
||||
core.registerErrorClass("NotSupported", errors.NotSupported);
|
||||
core.registerErrorClass("FilesystemLoop", errors.FilesystemLoop);
|
||||
core.registerErrorClass("IsADirectory", errors.IsADirectory);
|
||||
core.registerErrorClass("NetworkUnreachable", errors.NetworkUnreachable);
|
||||
core.registerErrorClass("NotADirectory", errors.NotADirectory);
|
||||
core.registerErrorBuilder(
|
||||
"DOMExceptionOperationError",
|
||||
function DOMExceptionOperationError(msg) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue