=== 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:
@@ -6,12 +6,14 @@ namespace adas_core.Application.Exceptions;
|
||||
/// Represents an exception that is thrown when a bad or invalid request is received.
|
||||
/// It serves as a specialized error type derived from the base <see cref="Exception"/> class for signaling client-side request failures.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=aec5b9f -->
|
||||
public class BadRequestException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BadRequestException"/> class with a specified error message.
|
||||
/// </summary>
|
||||
/// <param name="message">The error message defined in <see cref="HttpEnum.ErrorMessage"/> that describes the reason for the exception.</param>
|
||||
/// <!-- aidoc:v1 sig=2324fae body=4448e1d -->
|
||||
public BadRequestException(HttpEnum.ErrorMessage message) : base(((int)message).ToString())
|
||||
{
|
||||
}
|
||||
@@ -20,6 +22,7 @@ public class BadRequestException : Exception
|
||||
/// Initializes a new instance of the <see cref="BadRequestException"/> class with a specified error message.
|
||||
/// </summary>
|
||||
/// <param name="message">The error message that describes the reason for the exception.</param>
|
||||
/// <!-- aidoc:v1 sig=3d6c688 body=4448e1d -->
|
||||
public BadRequestException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user