RICADO Gen 4 API JS Client

RICADO Gen 4 API JS Client

source

Errors/ServerError.js

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

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

export default ServerError;