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

UnknownPropertyError.js « Exception « src - git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c0d8f7572e49737232da08d9528f173c24846110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
    }
}