commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider AbstractFileObject.java
Date Mon, 25 Nov 2002 05:32:58 GMT
adammurdoch    2002/11/24 21:32:58

  Modified:    vfs/src/java/org/apache/commons/vfs FileObject.java
               vfs/src/java/org/apache/commons/vfs/provider
                        AbstractFileObject.java
  Log:
  FileObject.getURL() throws FileSystemException, instead of MalformedURLException.
  
  Revision  Changes    Path
  1.14      +1 -1      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/FileObject.java
  
  Index: FileObject.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/FileObject.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- FileObject.java	20 Nov 2002 23:57:13 -0000	1.13
  +++ FileObject.java	25 Nov 2002 05:32:58 -0000	1.14
  @@ -118,7 +118,7 @@
       /**
        * Returns a URL representing this file.
        */
  -    URL getURL() throws MalformedURLException;
  +    URL getURL() throws FileSystemException;
   
       /**
        * Determines if this file exists.
  
  
  
  1.22      +3 -3      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/AbstractFileObject.java
  
  Index: AbstractFileObject.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/AbstractFileObject.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- AbstractFileObject.java	23 Nov 2002 00:41:09 -0000	1.21
  +++ AbstractFileObject.java	25 Nov 2002 05:32:58 -0000	1.22
  @@ -322,7 +322,7 @@
       /**
        * Returns a URL representation of the file.
        */
  -    public URL getURL() throws MalformedURLException
  +    public URL getURL() throws FileSystemException
       {
           final StringBuffer buf = new StringBuffer();
           try
  @@ -337,9 +337,9 @@
                       }
                   } );
           }
  -        catch ( PrivilegedActionException e )
  +        catch ( final PrivilegedActionException e )
           {
  -            throw (MalformedURLException)e.getException();
  +            throw new FileSystemException( "vfs.provider/get-url.error", name, e.getException()
);
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message