mediawiki-extensions-Visual.../modules/ve-mw/init/ve.init.mw.SaveErrorHandler.js
James D. Forrester 2c77e88d2c doc: Bump copyright year for 2020
Change-Id: I30539877543dc2a57bd1428a00d10ac46d8fc294
2020-01-08 09:13:24 -08:00

49 lines
998 B
JavaScript

/*!
* VisualEditor Initialization save error handler class
*
* @copyright 2011-2020 VisualEditor Team and others; see http://ve.mit-license.org
*/
/**
* Save error handler.
*
* @class
* @abstract
*
* @constructor
*/
ve.init.mw.SaveErrorHandler = function () {};
/* Inheritance */
OO.initClass( ve.init.mw.SaveErrorHandler );
/* Static methods */
/**
* Test if this handler should handle a specific API response
*
* @static
* @inheritable
* @param {Object} data API response from action=visualeditoredit
* @return {boolean}
*/
ve.init.mw.SaveErrorHandler.static.matchFunction = null;
/**
* Process the save error
*
* @static
* @inheritable
* @param {Object} data API response from action=visualeditoredit
* @param {ve.init.mw.ArticleTarget} target Target
*/
ve.init.mw.SaveErrorHandler.static.process = null;
/* Save error registry */
/*
* Extensions can add SaveErrorHandler sub-classes to this registry.
*/
ve.init.mw.saveErrorHandlerFactory = new OO.Factory();