Files

47 lines
1.7 KiB
C#
Raw Permalink Normal View History

2026-04-17 14:55:32 -04:00
using System;
namespace DTS.DASLib.Service
{
/// <summary>
/// This exception gets thrown when you call a service and it's already busy.
/// </summary>
public class BusyException : Exception
{
public BusyException(string msg) : base(msg) { }
}
public class TriggerShortedException : Exception
{
public TriggerShortedException(String msg) : base(msg) { }
}
public class StartShortedException : Exception
{
public StartShortedException(String msg) : base(msg) { }
}
/// <summary>
/// Representation of an attempt to access a channel's diagnostic information
/// when said information isn't available (which can happen, if diagnostics has
/// not yet been run on this particular channel this session).
/// </summary>
public class NoDiagnosticsAvailable : ApplicationException
{
public NoDiagnosticsAvailable() { }
public NoDiagnosticsAvailable(string msg) : base(msg) { }
public NoDiagnosticsAvailable(string msg, Exception ex) : base(msg, ex) { }
}
/// <summary>
/// Representation of an attempt to access a channel's diagnostic information
/// that results in several different diagnostic results (which should never happen,
/// but is theoretically supported by the list-y nature of the generic culling
/// code).
/// </summary>
public class TooManyDiagnosticsAvailable : ApplicationException
{
public TooManyDiagnosticsAvailable() { }
public TooManyDiagnosticsAvailable(string msg) : base(msg) { }
public TooManyDiagnosticsAvailable(string msg, Exception ex) : base(msg, ex) { }
}
}