RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

source

Errors/BadRequestError.js

/**
 * An Error Class for Code 400 Responses from the API
 */
class BadRequestError extends Error
{
    /**
     * Constructor
     * 
     * @public
     */
    constructor(...args)
    {
        super(...args);

        if(Error.captureStackTrace)
        {
            Error.captureStackTrace(this, BadRequestError);
        }
    }
}

export default BadRequestError;