luehe       2004/04/14 10:40:54

  Modified:    catalina/src/share/org/apache/coyote/tomcat5
                        CoyoteResponse.java
  Log:
  Added support for exception chaining.
  
  Revision  Changes    Path
  1.14      +9 -3      
jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteResponse.java
  
  Index: CoyoteResponse.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteResponse.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- CoyoteResponse.java       14 Apr 2004 00:14:22 -0000      1.13
  +++ CoyoteResponse.java       14 Apr 2004 17:40:54 -0000      1.14
  @@ -1438,7 +1438,10 @@
                                       }
                              });   
                           } catch (PrivilegedActionException pae){
  -                            throw new IllegalArgumentException(location);
  +                            IllegalArgumentException iae =
  +                                new IllegalArgumentException(location);
  +                            iae.initCause(pae.getCause());
  +                            throw iae;
                           }
                       } else {
                           encodedURI = urlEncoder.encodeURL(relativePath);
  @@ -1448,7 +1451,10 @@
                   }
                   redirectURLCC.append(location, 0, location.length());
               } catch (IOException e) {
  -                throw new IllegalArgumentException(location);
  +                IllegalArgumentException iae =
  +                    new IllegalArgumentException(location);
  +                iae.initCause(e);
  +                throw iae;
               }
   
               return redirectURLCC.toString();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to