Centralize the logic for throwing exceptions. Fixes #5913.
[jquery.git] / src / core.js
index 4102e5c..3ff95e0 100644 (file)
@@ -466,6 +466,10 @@ jQuery.extend({
                }
                return true;
        },
+       
+       error: function( msg ) {
+               throw msg;
+       },
 
        noop: function() {},