syncExceptions.js (1443B)
1 /* 2 ***** BEGIN LICENSE BLOCK ***** 3 4 Copyright © 2016 Center for History and New Media 5 George Mason University, Fairfax, Virginia, USA 6 http://zotero.org 7 8 This file is part of Zotero. 9 10 Zotero is free software: you can redistribute it and/or modify 11 it under the terms of the GNU Affero General Public License as published by 12 the Free Software Foundation, either version 3 of the License, or 13 (at your option) any later version. 14 15 Zotero is distributed in the hope that it will be useful, 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 GNU Affero General Public License for more details. 19 20 You should have received a copy of the GNU Affero General Public License 21 along with Zotero. If not, see <http://www.gnu.org/licenses/>. 22 23 ***** END LICENSE BLOCK ***** 24 */ 25 26 "use strict"; 27 28 /** 29 * @param {Boolean} [advanceToNextLibrary=false] - If true, continue with next library; if false, stop 30 * sync completely 31 */ 32 Zotero.Sync.UserCancelledException = function (advanceToNextLibrary) { 33 this.message = "User cancelled sync"; 34 this.advanceToNextLibrary = advanceToNextLibrary; 35 } 36 37 Zotero.Sync.UserCancelledException.prototype = Object.create(Error.prototype); 38 39 Zotero.Sync.UserCancelledException.prototype.toString = function() { 40 return this.message; 41 };