refactor: Make Domain exceptions serializable and add XML docs

- Add [Serializable] attribute to all custom exceptions
- Add protected constructors for serialization support
- Add XML documentation comments
- Update SwissQrCodeNotFoundException message format
This commit is contained in:
2026-07-16 15:47:44 +02:00
parent 88bde13422
commit a729df6fda
5 changed files with 14 additions and 13 deletions

View File

@@ -4,6 +4,7 @@
/// Exception thrown when domain validation fails (e.g., invalid Value Objects).
/// Maps to HTTP 400 Bad Request in the API layer.
/// </summary>
[Obsolete("This exception is deprecated. Use more specific exceptions for domain validation errors.")]
public class DomainValidationException : DomainException
{
public string PropertyName { get; }