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