using System;
namespace DTS.DASLib.Service
{
///
/// This exception gets thrown when you call a service and it's already busy.
///
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) { }
}
///
/// 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).
///
public class NoDiagnosticsAvailable : ApplicationException
{
public NoDiagnosticsAvailable() { }
public NoDiagnosticsAvailable(string msg) : base(msg) { }
public NoDiagnosticsAvailable(string msg, Exception ex) : base(msg, ex) { }
}
///
/// 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).
///
public class TooManyDiagnosticsAvailable : ApplicationException
{
public TooManyDiagnosticsAvailable() { }
public TooManyDiagnosticsAvailable(string msg) : base(msg) { }
public TooManyDiagnosticsAvailable(string msg, Exception ex) : base(msg, ex) { }
}
}