2003-02-25 Nick Drochak <ndrochak@gol.com>
authorNick Drochak <nickd@mono-cvs.ximian.com>
Tue, 25 Feb 2003 14:40:10 +0000 (14:40 -0000)
committerNick Drochak <nickd@mono-cvs.ximian.com>
Tue, 25 Feb 2003 14:40:10 +0000 (14:40 -0000)
* File.cs (GetCreationTime): Throw proper execption when path is not
found.

svn path=/trunk/mcs/; revision=11960

mcs/class/corlib/System.IO/ChangeLog
mcs/class/corlib/System.IO/File.cs

index da510d78c9bdd123311798f0dc258901c79ca57d..68201c000caa07c10c576fdfb8d4e9765556bac5 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-25  Nick Drochak <ndrochak@gol.com>
+
+       * File.cs (GetCreationTime): Throw proper execption when path is not
+       found.
 
 Tue Feb 25 11:55:35 CET 2003 Paolo Molaro <lupus@ximian.com>
 
index ff99fa422976c9c980358a5f4a5226548f108d07..a5dd3caf0fa067b21387e4b7fd4e4d3a1c3da35f 100644 (file)
@@ -168,7 +168,7 @@ namespace System.IO
                        MonoIOError error;
                        
                        if (!MonoIO.GetFileStat (path, out stat, out error))
-                               throw MonoIO.GetException (path, error);
+                               throw new IOException (path);
                        return DateTime.FromFileTime (stat.CreationTime);
                }