123456789101112131415161718192021222324 |
- using System.IO;
- namespace DiskAccessLibrary
- {
- public class DeviceNotReadyException : IOException
- {
- public DeviceNotReadyException() : this("Device Not Ready")
- {
- }
- public DeviceNotReadyException(string message) : base(message)
- {
- #if Win32
- HResult = (int)Win32Error.ERROR_NOT_READY;
- #endif
- }
- }
- }
|