rama creada apartir de master en j

This commit is contained in:
jrojas
2026-06-26 10:29:23 +02:00
parent 319fd3dfb0
commit c1517fda87
2810 changed files with 1927392 additions and 25392 deletions
@@ -2,12 +2,26 @@
namespace adas_core.Application.Exceptions;
/// <summary>
/// Represents a custom exception that is thrown when one or more arguments provided to a method are invalid.
/// </summary>
/// <remarks>
/// This exception extends the base <see cref="Exception"/> class to provide a domain-specific error type for argument validation failures.
/// </remarks>
public class CustomArgumentException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="CustomArgumentException"/> class with the specified error message.
/// </summary>
/// <param name="message">The error message from the <see cref="HttpEnum.ErrorMessage"/> enumeration.</param>
public CustomArgumentException(HttpEnum.ErrorMessage message) : base(((int)message).ToString())
{
}
/// <summary>
/// Initializes a new instance of the <see cref="CustomArgumentException"/> class with a specified error message.
/// </summary>
/// <param name="message">The error message that describes the reason for the exception.</param>
public CustomArgumentException(string message) : base(message)
{
}