Files
Nefarius.Peripherals.Serial…/Nefarius.Peripherals.SerialPort/CommPortException.cs
T

25 lines
674 B
C#
Raw Normal View History

2012-03-03 13:20:54 +03:30
using System;
2022-09-26 21:00:43 +02:00
namespace Nefarius.Peripherals.SerialPort;
/// <summary>
/// Exception used for all errors.
/// </summary>
public class CommPortException : ApplicationException
2012-03-03 13:20:54 +03:30
{
/// <summary>
2022-09-26 21:00:43 +02:00
/// Constructor for raising direct exceptions
2012-03-03 13:20:54 +03:30
/// </summary>
2022-09-26 21:00:43 +02:00
/// <param name="desc">Description of error</param>
public CommPortException(string desc) : base(desc)
2012-03-03 13:20:54 +03:30
{
2022-09-26 21:00:43 +02:00
}
2012-03-03 13:20:54 +03:30
2022-09-26 21:00:43 +02:00
/// <summary>
/// Constructor for re-raising exceptions from receive thread
/// </summary>
/// <param name="e">Inner exception raised on receive thread</param>
public CommPortException(Exception e) : base("Receive Thread Exception", e)
{
2012-03-03 13:20:54 +03:30
}
}