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) + { + } +}