- Add [Serializable] attribute to all custom exceptions - Add protected constructors for serialization support - Add XML documentation comments - Update SwissQrCodeNotFoundException message format
24 lines
665 B
C#
24 lines
665 B
C#
namespace DocumentOperator.Domain.Exceptions;
|
|
|
|
/// <summary>
|
|
/// Exception thrown when a Swiss QR Code cannot be found in a PDF document.
|
|
/// </summary>
|
|
[Obsolete("This exception is deprecated. Use SwissQrCodeNotFoundException instead.")]
|
|
public sealed class SwissQrCodeNotFoundException : Exception
|
|
{
|
|
public SwissQrCodeNotFoundException()
|
|
: base("No Swiss QR Code found on the last page of the PDF document.")
|
|
{
|
|
}
|
|
|
|
public SwissQrCodeNotFoundException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
public SwissQrCodeNotFoundException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
}
|
|
}
|