mirror of
https://github.com/nomi-san/parsec-vdd.git
synced 2026-08-07 13:50:45 +00:00
9f72bf5d49
- remove startup driver check - improve errors handling - update the way to fetch driver version
44 lines
835 B
C#
44 lines
835 B
C#
using System;
|
|
|
|
namespace ParsecVDisplay.Vdd
|
|
{
|
|
internal class ErrorDriverStatus : Exception
|
|
{
|
|
public readonly Device.Status Status;
|
|
|
|
public ErrorDriverStatus(Device.Status status)
|
|
{
|
|
this.Status = status;
|
|
}
|
|
}
|
|
|
|
internal class ErrorDeviceHandle : Exception
|
|
{
|
|
}
|
|
|
|
internal class ErrorExceededLimit : Exception
|
|
{
|
|
public readonly int Limit;
|
|
|
|
public ErrorExceededLimit(int limit)
|
|
{
|
|
this.Limit = limit;
|
|
}
|
|
}
|
|
|
|
internal class ErrorOperationFailed : Exception
|
|
{
|
|
public enum Operation
|
|
{
|
|
AddDisplay,
|
|
RemoveDisplay,
|
|
}
|
|
|
|
public readonly Operation Type;
|
|
|
|
public ErrorOperationFailed(Operation type)
|
|
{
|
|
this.Type = type;
|
|
}
|
|
}
|
|
} |