Source: error/OsuApiError.js

'use strict';

/** @module Errors */

/**
 * Error from the osu! API.
 * @memberof module:Errors
 */
class OsuApiError extends Error {
    /**
     * Creates the osu! API error object.
     * @param {String} message Describes the error caused from the osu! API.
     * @return {OsuApiError} The API error object.
     */
    constructor(message) {
        super(message);
        this.name = 'OsuApiError';
    }
}

module.exports = OsuApiError;