rama creada apartir de master en j
This commit is contained in:
@@ -2,12 +2,23 @@
|
||||
|
||||
namespace adas_core.Application.Exceptions;
|
||||
|
||||
/// <summary>
|
||||
/// Exception thrown when a user lacks authorization to perform an operation.
|
||||
/// </summary>
|
||||
public class UnauthorizedException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UnauthorizedException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="message">The error message associated with the exception.</param>
|
||||
public UnauthorizedException(HttpEnum.ErrorMessage message) : base(((int)message).ToString())
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UnauthorizedException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="message">The message that describes the error.</param>
|
||||
public UnauthorizedException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user