open-orchestra/open-orchestra-cms-bundle

View on GitHub
BackofficeBundle/Resources/public/ecmascript/OpenOrchestra/Service/Error/AjaxError.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * @class AjaxError
 */
class AjaxError extends Error
{
    /**
     * @param {int}    statusCode
     * @param {string} content
     * @param {string} message
     */
    constructor(statusCode, content, message = '') {
        super(message);
        this.content = content;
        this.statusCode = statusCode;
        this.name = 'AjaxError';
    }
}

export default AjaxError;