feat(core): ForbiddenException hinzugefügt zur Behandlung von verbotenen Operationen
This commit is contained in:
parent
62e36f4459
commit
f01db9c2d7
24
DigitalData.Core.Exceptions/ForbiddenException.cs
Normal file
24
DigitalData.Core.Exceptions/ForbiddenException.cs
Normal 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)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user