25 lines
728 B
C#

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