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
@@ -1,3 +1,6 @@
namespace adas_core.Domain.Exceptions;
/// <summary>
/// Represents an exception that is thrown when an error occurs within the ADAS (Advanced Driver Assistance Systems) module, providing a prefixed message for easier identification.
/// </summary>
public class AdasException(string message) : Exception($"ADAS Exception: {message}");
@@ -2,6 +2,9 @@
namespace adas_core.Domain.Exceptions;
/// <summary>
/// Represents an exception that aggregates one or more errors related to business logic or domain rule violations.
/// </summary>
public class BusinessException : AggregateException
{
public BusinessException(HttpStatusCode status, string message) : base($"{status}: {message}")
@@ -2,6 +2,13 @@
namespace adas_core.Domain.Exceptions;
/// <summary>
/// Represents an exception that is thrown when an error occurs within the login services layer.
/// </summary>
/// <remarks>
/// This exception extends <see cref="BusinessException"/> to signal business-level failures
/// specific to authentication and login operations.
/// </remarks>
public class LoginServicesException : BusinessException
{
public LoginServicesException(string message) :
@@ -2,6 +2,12 @@
namespace adas_core.Domain.Exceptions;
/// <summary>
/// Represents a business exception that is thrown when a requested user cannot be found.
/// </summary>
/// <remarks>
/// Inherits from <see cref="BusinessException"/> to signal user lookup failures within the business domain.
/// </remarks>
public class UserNotFoundException : BusinessException
{
public UserNotFoundException(string username) :