Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Exception/UnknownPropertyError.js')
-rw-r--r--src/Exception/UnknownPropertyError.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/Exception/UnknownPropertyError.js b/src/Exception/UnknownPropertyError.js
new file mode 100644
index 0000000..c0d8f75
--- /dev/null
+++ b/src/Exception/UnknownPropertyError.js
@@ -0,0 +1,34 @@
+export default class UnknownPropertyError extends Error {
+
+ /**
+ * @returns {String}
+ */
+ get name() {
+ return 'UnknownPropertyError';
+ }
+
+ /**
+ * @returns {String}
+ */
+ get item() {
+ return this._item;
+ }
+
+ /**
+ * @returns {String}
+ */
+ get property() {
+ return this._property;
+ }
+
+ /**
+ * @param {String} property
+ * @param {String} item
+ */
+ constructor(property, item) {
+ super(`Attempted access to unknown property ${property}`);
+
+ this._property = property;
+ this._item = item;
+ }
+} \ No newline at end of file