Files
Aaru/Aaru.Devices/Device/DeviceException.cs

15 lines
429 B
C#
Raw Normal View History

using System;
2020-02-27 00:33:26 +00:00
namespace Aaru.Devices
{
2020-02-29 18:03:35 +00:00
/// <summary>Exception to be returned by the device constructor</summary>
public class DeviceException : Exception
{
2020-02-29 18:03:35 +00:00
internal DeviceException(string message) : base(message) {}
2020-02-29 18:03:35 +00:00
internal DeviceException(int lastError) => LastError = lastError;
2020-02-29 18:03:35 +00:00
/// <summary>Last error sent by the operating systen</summary>
public int LastError { get; }
}
}