geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/modules/common/src/java/org/apache/geronimo/common Strings.java
Date Mon, 25 Aug 2003 18:34:38 GMT
jdillon     2003/08/25 11:34:38

  Modified:    modules/common/src/java/org/apache/geronimo/common
                        Strings.java
  Log:
   o toURL() does not eat the IOException detail anymore, tosses a MUE with
     the IOE attached
  
  Revision  Changes    Path
  1.8       +5 -5      incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/Strings.java
  
  Index: Strings.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/Strings.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Strings.java	16 Aug 2003 15:14:11 -0000	1.7
  +++ Strings.java	25 Aug 2003 18:34:38 -0000	1.8
  @@ -709,10 +709,10 @@
                   url = makeURLFromFilespec(urlspec, relativePrefix);
               }
               catch (IOException n) {
  -                //
  -                // jason: or should we rethrow e?
  -                //
  -                throw new MalformedURLException(n.toString());
  +                MalformedURLException mue = 
  +                    new MalformedURLException("Failed to create URL from filespec: " +
urlspec);
  +                mue.initCause(n);
  +                throw mue;
               }
           }
           
  
  
  

Mime
View raw message