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

NetworkError.js « Exception « src - git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1758fefccf1ceddb283e290eb81879e96e24ccc5 (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
export default class NetworkError extends Error {

    /**
     * @returns {String}
     */
    get name() {
        return 'NetworkError';
    }

    /**
     * @returns {Response}
     */
    get response() {
        return this._response;
    }

    /**
     * @param {Response} response
     */
    constructor(response) {
        super(`Network error`);
        this._response = response;
    }
}