Author: reebalazs
Date: Tue Aug 28 22:41:17 2007
New Revision: 46107
Modified:
kukit/kukit.js/trunk/kukit/commandprocessor.js
kukit/kukit.js/trunk/kukit/kssparser.js
kukit/kukit.js/trunk/kukit/resourcedata.js
kukit/kukit.js/trunk/tests/test_tokenizer.js
Log:
Changing errors infrastructure, removing news from throws, not needed any more
Modified: kukit/kukit.js/trunk/kukit/commandprocessor.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/commandprocessor.js (original)
+++ kukit/kukit.js/trunk/kukit/commandprocessor.js Tue Aug 28 22:41:17 2007
@@ -126,7 +126,7 @@
;;; throw(e);
;;; } else {
;;; // augment the error message
-;;; throw new kukit.err.CommandExecutionError(e, command);
+;;; throw kukit.err.CommandExecutionError(e, command);
;;; }
;;; }
}
Modified: kukit/kukit.js/trunk/kukit/kssparser.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/kssparser.js (original)
+++ kukit/kukit.js/trunk/kukit/kssparser.js Tue Aug 28 22:41:17 2007
@@ -706,7 +706,7 @@
;;; kukit.E = 'Undefined event : [';
;;; kukit.E += rule.kssSelector.namespace;
;;; kukit.E += ':' + rule.kssSelector.name + '].';
-;;; throw new kukit.err.tk.ParsingError(kukit.E);
+;;; throw kukit.err.tk.ParsingError(kukit.E);
;;; }
this.rules.push(rule);
}
Modified: kukit/kukit.js/trunk/kukit/resourcedata.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/resourcedata.js (original)
+++ kukit/kukit.js/trunk/kukit/resourcedata.js Tue Aug 28 22:41:17 2007
@@ -46,23 +46,23 @@
}
;;; if (name.indexOf('@') != -1) {
;;; var msg = 'Kss selector name must not contain @: [' + name + '].';
-;;; throw new kukit.err.rd.KssSelectorError(msg);
+;;; throw kukit.err.rd.KssSelectorError(msg);
;;; }
;;; if (id && id.indexOf('@') != -1) {
;;; var msg = 'Kss selector id must not contain @: [' + id + '].';
-;;; throw new kukit.err.rd.KssSelectorError(msg);
+;;; throw kukit.err.rd.KssSelectorError(msg);
;;; }
;;; if (namespace && namespace.indexOf('@') != -1) {
;;; var msg = 'Kss selector namespace must not contain @: [' + namespace;
;;; msg = msg + '].';
-;;; throw new kukit.err.rd.KssSelectorError(msg);
+;;; throw kukit.err.rd.KssSelectorError(msg);
;;; }
;;; if (! isEvent) {
;;; // method rule
;;; if (css != 'document' && css != 'behaviour') {
;;; var msg = 'KssSpecialSelector [' + name;
;;; msg = msg + '] must have one of the allowed names';
-;;; throw new kukit.err.rd.KssSelectorError(msg);
+;;; throw kukit.err.rd.KssSelectorError(msg);
;;; }
;;; }
this.css = css;
@@ -460,14 +460,14 @@
;;; if (this.name != null && this.name != name) {
;;; var msg = 'Error overriding action name [' + this.name;
;;; msg = msg + '] to [' + name + '] (Unmatching action names at merge?)';
-;;; throw new kukit.err.rd.RuleMergeError(msg);
+;;; throw kukit.err.rd.RuleMergeError(msg);
;;; }
this.name = name;
if (name == 'default') {
;;; if (this.type != null && this.type != 'D') {
;;; var msg = 'Error setting action to default on action [' +
this.name;
;;; msg = msg + '], current type [' + this.type + '].';
-;;; throw new kukit.err.rd.RuleMergeError(msg);
+;;; throw kukit.err.rd.RuleMergeError(msg);
;;; }
this.setType('D');
}
@@ -492,12 +492,12 @@
;;; var msg = 'Error setting action type on action [' + this.name;
;;; msg = msg + '] from [' + this.type + '] to [' + type;
;;; msg = msg + '] (Attempt to merge client, server or error actions ?)';
-;;; throw new kukit.err.rd.RuleMergeError(msg);
+;;; throw kukit.err.rd.RuleMergeError(msg);
;;; }
;;; if (this.error != null && this.type != 'S') {
;;; var msg = 'Error setting action error handler on action [' + this.name;
;;; msg = msg + '], this is only allowed on server actions.';
-;;; throw new kukit.err.rd.RuleMergeError(msg);
+;;; throw kukit.err.rd.RuleMergeError(msg);
;;; }
this.type = type;
};
@@ -506,7 +506,7 @@
;;; if (this.type != null && this.type != 'S') {
;;; var msg = 'Error setting action error handler on action [' + this.name;
;;; msg = msg + '], this is only allowed on server actions.';
-;;; throw new kukit.err.rd.RuleMergeError(msg);
+;;; throw kukit.err.rd.RuleMergeError(msg);
;;; }
this.error = error;
};
Modified: kukit/kukit.js/trunk/tests/test_tokenizer.js
==============================================================================
--- kukit/kukit.js/trunk/tests/test_tokenizer.js (original)
+++ kukit/kukit.js/trunk/tests/test_tokenizer.js Tue Aug 28 22:41:17 2007
@@ -84,7 +84,7 @@
return; }
var exc = null;
try {
- throw new kukit.err.tk.ParsingError('Error happened');
+ throw kukit.err.tk.ParsingError('Error happened');
} catch(e) {
exc = e;
}
@@ -105,7 +105,7 @@
var cursor = new kukit.tk.Cursor('1234\n1234\n1234\n1234\n');
var marker = cursor.makeMarker(13);
try {
- throw new kukit.err.tk.ParsingError('Error happened', marker);
+ throw kukit.err.tk.ParsingError('Error happened', marker);
} catch(e) {
exc = e;
}
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins