DeviceNotReadyException.cs 703 B

1234567891011121314151617181920212223
  1. /* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System.IO;
  8. namespace DiskAccessLibrary
  9. {
  10. public class DeviceNotReadyException : IOException
  11. {
  12. public DeviceNotReadyException() : base()
  13. {
  14. HResult = (int)Win32Error.ERROR_NOT_READY;
  15. }
  16. public DeviceNotReadyException(string message) : base(message)
  17. {
  18. HResult = (int)Win32Error.ERROR_NOT_READY;
  19. }
  20. }
  21. }