open-orchestra/open-orchestra-cms-bundle

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

Summary

Maintainability
A
0 mins
Test Coverage
import AjaxError from 'OpenOrchestra/Service/Error/AjaxError'

/**
 * @class ServerError
 */
class ServerError extends AjaxError
{
    /**
     * @param {int}    statusCode
     * @param {string} content
     * @param {string} message
     */
    constructor(statusCode, content, message){
        super(statusCode, content, message);
        this.name = "ServerError";
    }
}

export default ServerError;