=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -8,12 +8,14 @@ namespace adas_core.Application.Exceptions;
|
||||
/// <remarks>
|
||||
/// This exception is intended to signal that a requested action violates access rules or restrictions, allowing callers to handle forbidden scenarios distinctly from other error conditions.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=2024892 -->
|
||||
public class ForbbidenException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ForbbidenException"/> class with a specified error message from the <see cref="HttpEnum.ErrorMessage"/> enumeration.
|
||||
/// </summary>
|
||||
/// <param name="message">The <see cref="HttpEnum.ErrorMessage"/> enumeration value whose integer representation is used as the exception message.</param>
|
||||
/// <!-- aidoc:v1 sig=75787d6 body=4448e1d -->
|
||||
public ForbbidenException(HttpEnum.ErrorMessage message) : base(((int)message).ToString())
|
||||
{
|
||||
}
|
||||
@@ -22,6 +24,7 @@ public class ForbbidenException : Exception
|
||||
/// Initializes a new instance of the <see cref="ForbbidenException"/> class with a specified error message.
|
||||
/// </summary>
|
||||
/// <param name="message">The message that describes the error.</param>
|
||||
/// <!-- aidoc:v1 sig=545f359 body=4448e1d -->
|
||||
public ForbbidenException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user