diff options
Diffstat (limited to 'src/mscorlib/src/System/IO/DriveNotFoundException.cs')
-rw-r--r-- | src/mscorlib/src/System/IO/DriveNotFoundException.cs | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/src/mscorlib/src/System/IO/DriveNotFoundException.cs b/src/mscorlib/src/System/IO/DriveNotFoundException.cs index f0245a8b28..27b6f9015d 100644 --- a/src/mscorlib/src/System/IO/DriveNotFoundException.cs +++ b/src/mscorlib/src/System/IO/DriveNotFoundException.cs @@ -10,25 +10,30 @@ // // //============================================================ + using System; using System.Runtime.Serialization; -namespace System.IO { - +namespace System.IO +{ //Thrown when trying to access a drive that is not availabe. [Serializable] - internal class DriveNotFoundException : IOException { - public DriveNotFoundException() - : base(Environment.GetResourceString("Arg_DriveNotFoundException")) { - SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND); + internal class DriveNotFoundException : IOException + { + public DriveNotFoundException() + : base(SR.Arg_DriveNotFoundException) + { + HResult = __HResults.COR_E_DIRECTORYNOTFOUND; } - - public DriveNotFoundException(String message) - : base(message) { - SetErrorCode(__HResults.COR_E_DIRECTORYNOTFOUND); + + public DriveNotFoundException(String message) + : base(message) + { + HResult = __HResults.COR_E_DIRECTORYNOTFOUND; } - - protected DriveNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) { + + protected DriveNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) + { } } } |