Revision: 3392 http://vexi.svn.sourceforge.net/vexi/?rev=3392&view=rev Author: clrg Date: 2009-02-19 02:10:01 +0000 (Thu, 19 Feb 2009)
Log Message: ----------- Add throwException helper function to vexi..vexi.util.log Modified Paths: -------------- trunk/widgets/org.vexi.widgets/src/vexi/util/log.t Modified: trunk/widgets/org.vexi.widgets/src/vexi/util/log.t =================================================================== --- trunk/widgets/org.vexi.widgets/src/vexi/util/log.t 2009-02-18 22:55:27 UTC (rev 3391) +++ trunk/widgets/org.vexi.widgets/src/vexi/util/log.t 2009-02-19 02:10:01 UTC (rev 3392) @@ -41,6 +41,11 @@ vexi.ui.clipboard = str; } + /** throw an exception of type 't' with message 'm' */ + static.throwException = function(t, m) { + try { throw m; } catch(e) { e.type = t; throw e; }; + } + <ui:box /> </vexi> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn