38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
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;
|
|
}
|
|
}
|
|
|