From: Alan Knowles Date: Thu, 25 Nov 2010 06:06:46 +0000 (+0800) Subject: XObject.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=72e375ae91944cf27a7b8c3560fac6ab9ba3ec19 XObject.js --- diff --git a/XObject.js b/XObject.js index 5c357f4e6..365f47a80 100644 --- a/XObject.js +++ b/XObject.js @@ -604,7 +604,19 @@ XObject.extend(XObject, { print("ERROR: " + output); }, - + /** + * fatal error + * @param {String|Object} output String to print. + */ + fatal : function(output) + { + + throw { + name: "ArgumentError", + message : output + + } + }, /** * Copies all the properties of config to obj, if the do not exist.