1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-29 11:17:52 +01:00

Exception -> Error

This commit is contained in:
maximebf 2013-08-12 11:22:40 +10:00
parent cb609c9b5b
commit 966a8e2d66

View File

@ -380,7 +380,7 @@ if (typeof(localStorage) == 'undefined') {
*/
addTab: function(name, tab) {
if (this.isControl(name)) {
throw new Exception(name + ' already exists');
throw new Error(name + ' already exists');
}
var self = this;
@ -423,7 +423,7 @@ if (typeof(localStorage) == 'undefined') {
*/
addIndicator: function(name, indicator) {
if (this.isControl(name)) {
throw new Exception(name + ' already exists');
throw new Error(name + ' already exists');
}
if (indicator.get('position') == 'right') {
@ -514,7 +514,7 @@ if (typeof(localStorage) == 'undefined') {
}
if (!this.isTab(name)) {
throw new Exception("Unknown tab '" + name + "'");
throw new Error("Unknown tab '" + name + "'");
}
this.$resizehdle.show();