pms5003/PMS5003/Exceptions/BufferUnderflowExceptions.cs

16 lines
420 B
C#
Raw Normal View History

2021-04-10 14:48:03 +00:00
using System;
namespace PMS5003.Exceptions
{
/// <summary>
/// BufferUnderflowExceptions is thrown when the PMS5003 data buffer is incomplete.
/// </summary>
[Serializable]
public class BufferUnderflowException : Exception
{
public BufferUnderflowException() : base("The PMS5003 data buffer is underrun, not enough bytes read!")
{
}
}
}