mediawiki-extensions-Visual.../modules/ve-mw/init/ve.init.mw.SaveErrorHandler.js
Ed Sanders 041e7b77a1 Create SaveErrorHandler class to better define structure
Change-Id: I036ee32847cc3b25a1cc478247cfe54599781098
2018-11-29 15:47:03 +00:00

44 lines
823 B
JavaScript

/*!
* VisualEditor Initialization save error handler class
*
* @copyright 2011-2018 VisualEditor Team and others; see http://ve.mit-license.org
*/
/**
* Data transfer handler.
*
* @class
* @abstract
*
* @constructor
*/
ve.init.mw.SaveErrorHandler = function () {};
/* Inheritance */
OO.initClass( ve.init.mw.SaveErrorHandler );
/* Static methods */
/**
* Test if this handler should handle as specific API response
*
* @static
* @inheritable
* @method
* @param {Object} editApi Edit API response
* @return {boolean}
*/
ve.init.mw.SaveErrorHandler.static.matchFunction = null;
/**
* Process the save error
*
* @static
* @inheritable
* @method
* @param {Object} editApi Edit API response
* @param {ve.init.mw.ArticleTarget} target Target
*/
ve.init.mw.SaveErrorHandler.static.process = null;