Revision: 3058 http://vexi.svn.sourceforge.net/vexi/?rev=3058&view=rev Author: mkpg2 Date: 2008-08-09 22:37:28 +0000 (Sat, 09 Aug 2008)
Log Message: ----------- Fix. Make handling of IOException more uniform. Change textures to trigger fill write with JSExn, not null if they do not load. Modified Paths: -------------- trunk/core/org.ibex.js/src/org/ibex/js/JSU.jpp Modified: trunk/core/org.ibex.js/src/org/ibex/js/JSU.jpp =================================================================== --- trunk/core/org.ibex.js/src/org/ibex/js/JSU.jpp 2008-08-09 22:09:40 UTC (rev 3057) +++ trunk/core/org.ibex.js/src/org/ibex/js/JSU.jpp 2008-08-09 22:37:28 UTC (rev 3058) @@ -1,6 +1,5 @@ package org.ibex.js; -import java.awt.event.KeyEvent; import java.io.IOException; import java.io.InputStream; @@ -37,15 +36,21 @@ return null; } - public static InputStream getInputStream(JS j) throws IOException { + static public InputStream getInputStream(JS j) throws IOException { Fountain f = getFountain(j); return (f!=null)?f.getInputStream():null; } + // HACK - this is an unideal way to handle it, as it relies + // on everywhere that handles IOExceptions from fountains to + // call this... + static public JSExn handleFountainExn(IOException e){ + if(e instanceof org.ibex.net.HTTP.HTTPException) return new JSExn(JSU.S(e.getMessage()),SC_http); + return new JSExn(e.getMessage()); + } - public static void schedule(final Callable callback, final Object response){ Scheduler.add(new Callable(){ // Optimise this object creation away by adding set This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn