Initial commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
|
||||
namespace RobotNet10.Realtime;
|
||||
|
||||
/// <summary>
|
||||
/// Exception thrown when a real-time operation fails.
|
||||
/// </summary>
|
||||
public class RealtimeException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the Linux errno value.
|
||||
/// </summary>
|
||||
public int Errno { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of RealtimeException.
|
||||
/// </summary>
|
||||
/// <param name="message">Error message</param>
|
||||
/// <param name="errno">Linux errno value</param>
|
||||
public RealtimeException(string message, int errno) : base(message)
|
||||
{
|
||||
Errno = errno;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of RealtimeException.
|
||||
/// </summary>
|
||||
/// <param name="message">Error message</param>
|
||||
/// <param name="errno">Linux errno value</param>
|
||||
/// <param name="innerException">Inner exception</param>
|
||||
public RealtimeException(string message, int errno, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
Errno = errno;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user