Files
Aaru/Aaru.Devices/Device/DeviceException.cs
2020-02-29 18:03:35 +00:00

15 lines
429 B
C#

using System;
namespace Aaru.Devices
{
/// <summary>Exception to be returned by the device constructor</summary>
public class DeviceException : Exception
{
internal DeviceException(string message) : base(message) {}
internal DeviceException(int lastError) => LastError = lastError;
/// <summary>Last error sent by the operating systen</summary>
public int LastError { get; }
}
}