using System; namespace RobotNet10.Realtime; /// /// Exception thrown when a real-time operation fails. /// public class RealtimeException : Exception { /// /// Gets the Linux errno value. /// public int Errno { get; } /// /// Initializes a new instance of RealtimeException. /// /// Error message /// Linux errno value public RealtimeException(string message, int errno) : base(message) { Errno = errno; } /// /// Initializes a new instance of RealtimeException. /// /// Error message /// Linux errno value /// Inner exception public RealtimeException(string message, int errno, Exception innerException) : base(message, innerException) { Errno = errno; } }