This commit implements a complete rebranding of the project: - Updated all namespaces from `DocumentOperator` to `DocumentService`. - Renamed file paths, embedded resources, and test data references. - Updated configuration keys, logging paths, and Redis instance names. - Revised documentation to reflect the new project name. - Modified project and solution files to align with the new structure. - Updated class names, DTOs, commands, queries, and handlers. - Adjusted middleware, controllers, and API endpoints. - Updated Swagger metadata and API titles to `DocumentService API`. - Refactored test namespaces, resource paths, and embedded resources. - Updated build and deployment configurations for the new name. - Replaced all references to `DocumentOperator` in comments and literals. These changes ensure consistency across the codebase and documentation.
26 lines
783 B
C#
26 lines
783 B
C#
namespace DocumentService.Domain.Common.Exceptions;
|
|
|
|
/// <summary>
|
|
/// Base exception for all domain-related exceptions.
|
|
/// Caught by the Exception Handling Middleware in the API layer.
|
|
/// </summary>
|
|
[Obsolete("This exception is deprecated. Use more specific exceptions for domain errors.")]
|
|
public abstract class DomainException : Exception
|
|
{
|
|
/// <summary>
|
|
/// Error code for categorization and logging.
|
|
/// </summary>
|
|
public string ErrorCode { get; }
|
|
|
|
protected DomainException(string message, string errorCode)
|
|
: base(message)
|
|
{
|
|
ErrorCode = errorCode;
|
|
}
|
|
|
|
protected DomainException(string message, string errorCode, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
ErrorCode = errorCode;
|
|
}
|
|
} |