Renamed namespaces

This commit is contained in:
2022-09-26 21:00:43 +02:00
parent f9a76b68da
commit 2424f26755
16 changed files with 117 additions and 81 deletions
@@ -1,22 +1,25 @@
using System;
namespace PInvokeSerialPort
namespace Nefarius.Peripherals.SerialPort;
/// <summary>
/// Exception used for all errors.
/// </summary>
public class CommPortException : ApplicationException
{
/// <summary>
/// Exception used for all errors.
/// Constructor for raising direct exceptions
/// </summary>
public class CommPortException : ApplicationException
/// <param name="desc">Description of error</param>
public CommPortException(string desc) : base(desc)
{
/// <summary>
/// Constructor for raising direct exceptions
/// </summary>
/// <param name="desc">Description of error</param>
public CommPortException(string desc) : base(desc) { }
}
/// <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) { }
/// <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)
{
}
}