rama creada apartir de master en j
This commit is contained in:
@@ -2,12 +2,23 @@
|
||||
|
||||
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>
|
||||
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>
|
||||
public InvalidFormatException(HttpEnum.ErrorMessage message) : base(((int)message).ToString())
|
||||
{
|
||||
}
|
||||
|
||||
/// <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>
|
||||
public InvalidFormatException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user