XObject.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 25 Nov 2010 06:06:46 +0000 (14:06 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 25 Nov 2010 06:06:46 +0000 (14:06 +0800)
XObject.js

index 5c357f4..365f47a 100644 (file)
@@ -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.