From 42a1266da55e867ad945e1b36a198b747bece967 Mon Sep 17 00:00:00 2001 From: Victor Seiji Hariki Date: Sun, 27 Nov 2022 09:48:13 -0300 Subject: [PATCH] Add custom errors Signed-off-by: Victor Seiji Hariki --- index.html | 1 + js/error.js | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 js/error.js diff --git a/index.html b/index.html index dffa80b..aad308e 100644 --- a/index.html +++ b/index.html @@ -284,6 +284,7 @@ + diff --git a/js/error.js b/js/error.js new file mode 100644 index 0000000..3c1e61d --- /dev/null +++ b/js/error.js @@ -0,0 +1,7 @@ +/** + * This is a file to configure custom errors + */ + +/* Proxy Restriction Errors */ +class ProxyReadOnlySetError extends Error {} +class ProxyWriteOnceSetError extends Error {}