mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
15 lines
429 B
C#
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; }
|
|
}
|
|
} |