=== 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:
@@ -5,12 +5,15 @@ namespace adas_core.Application.Exceptions;
|
||||
/// <summary>
|
||||
/// Represents the exception that is thrown when data is encountered in a format that is not valid or expected.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=e46b8ff -->
|
||||
public class InvalidFormatException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InvalidFormatException"/> class with a specified error message.
|
||||
/// </summary>
|
||||
/// <param name="message">The error message that describes the reason for the exception.</param>
|
||||
/// <!-- aidoc-review:v1 severity=medium kind=wrong_param_role
|
||||
/// "The parameter is of type HttpEnum.ErrorMessage (an enum), not an error message string. It is documented as 'The error message that describes the reason for the exception', which mischaracterizes its role." -->
|
||||
public InvalidFormatException(HttpEnum.ErrorMessage message) : base(((int)message).ToString())
|
||||
{
|
||||
}
|
||||
@@ -19,6 +22,7 @@ public class InvalidFormatException : Exception
|
||||
/// Initializes a new instance of the <see cref="InvalidFormatException"/> class with a specified error message.
|
||||
/// </summary>
|
||||
/// <param name="message">The error message that describes the reason for the exception.</param>
|
||||
/// <!-- aidoc:v1 sig=8a27f52 body=4448e1d -->
|
||||
public InvalidFormatException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user