Files
parsec-vdd/app/Vdd/Errors.cs
T
Nguyen Duy 9f72bf5d49 refactor: add vdd controller
- remove startup driver check
- improve errors handling
- update the way to fetch driver version
2024-12-16 09:32:22 +07:00

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;
}
}
}