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