summaryrefslogtreecommitdiff
path: root/runtime/js/01_errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/01_errors.js')
-rw-r--r--runtime/js/01_errors.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/runtime/js/01_errors.js b/runtime/js/01_errors.js
index 8288e3ce9..0c54f6581 100644
--- a/runtime/js/01_errors.js
+++ b/runtime/js/01_errors.js
@@ -131,6 +131,34 @@ class NotSupported extends Error {
}
}
+class FilesystemLoop extends Error {
+ constructor(msg) {
+ super(msg);
+ this.name = "FilesystemLoop";
+ }
+}
+
+class IsADirectory extends Error {
+ constructor(msg) {
+ super(msg);
+ this.name = "IsADirectory";
+ }
+}
+
+class NetworkUnreachable extends Error {
+ constructor(msg) {
+ super(msg);
+ this.name = "NetworkUnreachable";
+ }
+}
+
+class NotADirectory extends Error {
+ constructor(msg) {
+ super(msg);
+ this.name = "NotADirectory";
+ }
+}
+
const errors = {
NotFound,
PermissionDenied,
@@ -152,6 +180,10 @@ const errors = {
Http,
Busy,
NotSupported,
+ FilesystemLoop,
+ IsADirectory,
+ NetworkUnreachable,
+ NotADirectory,
};
export { errors };