using System;
namespace Nefarius.Peripherals.SerialPort;
///
/// Exception used for all errors.
///
public class CommPortException : ApplicationException
{
///
/// Constructor for raising direct exceptions
///
/// Description of error
public CommPortException(string desc) : base(desc)
{
}
///
/// Constructor for re-raising exceptions from receive thread
///
/// Inner exception raised on receive thread
public CommPortException(Exception e) : base("Receive Thread Exception", e)
{
}
}