- Add [Serializable] attribute to all custom exceptions - Add protected constructors for serialization support - Add XML documentation comments - Update SwissQrCodeNotFoundException message format
22 lines
515 B
C#
22 lines
515 B
C#
using System.Runtime.Serialization;
|
|
|
|
namespace DocumentOperator.Domain.Common.Exceptions;
|
|
|
|
/// <summary>
|
|
/// Exception thrown when a requested resource is not found.
|
|
/// Maps to HTTP 404 Not Found in the API layer.
|
|
/// </summary>
|
|
public class NotFoundException : Exception
|
|
{
|
|
public NotFoundException()
|
|
{
|
|
}
|
|
|
|
public NotFoundException(string? message) : base(message)
|
|
{
|
|
}
|
|
|
|
public NotFoundException(string? message, Exception? innerException) : base(message, innerException)
|
|
{
|
|
}
|
|
} |