feat(core): ForbiddenException hinzugefügt zur Behandlung von verbotenen Operationen

This commit is contained in:
Developer 02 2025-08-05 19:36:44 +02:00
parent 62e36f4459
commit f01db9c2d7

View File

@ -0,0 +1,24 @@
namespace DigitalData.Core.Exceptions;
/// <summary>
/// Represents an exception thrown when an operation is forbidden.
/// Typically used to indicate lack of permission or access rights.
/// </summary>
public class ForbiddenException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="ForbiddenException"/> class.
/// </summary>
public ForbiddenException()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ForbiddenException"/> class with a specified error message.
/// </summary>
/// <param name="message">The message that describes the error.</param>
public ForbiddenException(string? message)
: base(message)
{
}
}