X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..6746dc89c47ed01b165cc1152533605f97eb8e8d:/src/core/src/lang/Error.js diff --git a/src/core/src/lang/Error.js b/src/core/src/lang/Error.js index 43fad527..2b741ecd 100644 --- a/src/core/src/lang/Error.js +++ b/src/core/src/lang/Error.js @@ -1,3 +1,17 @@ +/* + +This file is part of Ext JS 4 + +Copyright (c) 2011 Sencha Inc + +Contact: http://www.sencha.com/contact + +GNU General Public License Usage +This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. + +If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. + +*/ /** * @class Ext.Error * @private @@ -56,7 +70,7 @@ If a console is available (that supports the `console.dir` function) you'll see As you can see, the error will report exactly where it was raised and will include as much information as the raising code can usefully provide. -If you want to handle all application errors globally you can simply override the static {@link handle} method +If you want to handle all application errors globally you can simply override the static {@link #handle} method and provide whatever handling logic you need. If the method returns true then the error is considered handled and will not be thrown to the browser. If anything but true is returned then the error will be thrown normally. @@ -207,7 +221,6 @@ error to the browser, otherwise the error will be thrown and execution will halt name: 'Ext.Error', /** - * @constructor * @param {String/Object} config The error message string, or an object containing the * attribute "msg" that will be used as the error message. Any other data included in * the object will be applied to the error instance and logged to the browser console, if available. @@ -322,3 +335,4 @@ a particular error instance, if you want to provide a custom description that wi poll(); })(); // +