From f01db9c2d734f93dc7f0a145d3f3c9845683d244 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Tue, 5 Aug 2025 19:36:44 +0200 Subject: [PATCH] =?UTF-8?q?feat(core):=20ForbiddenException=20hinzugef?= =?UTF-8?q?=C3=BCgt=20zur=20Behandlung=20von=20verbotenen=20Operationen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ForbiddenException.cs | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 DigitalData.Core.Exceptions/ForbiddenException.cs diff --git a/DigitalData.Core.Exceptions/ForbiddenException.cs b/DigitalData.Core.Exceptions/ForbiddenException.cs new file mode 100644 index 0000000..186d523 --- /dev/null +++ b/DigitalData.Core.Exceptions/ForbiddenException.cs @@ -0,0 +1,24 @@ +namespace DigitalData.Core.Exceptions; + +/// +/// Represents an exception thrown when an operation is forbidden. +/// Typically used to indicate lack of permission or access rights. +/// +public class ForbiddenException : Exception +{ + /// + /// Initializes a new instance of the class. + /// + public ForbiddenException() + { + } + + /// + /// Initializes a new instance of the class with a specified error message. + /// + /// The message that describes the error. + public ForbiddenException(string? message) + : base(message) + { + } +}