diff --git a/EnvelopeGenerator.Application/EmailTemplates/Commands/Update/UpdateEmailTemplateCommandHandler.cs b/EnvelopeGenerator.Application/EmailTemplates/Commands/Update/UpdateEmailTemplateCommandHandler.cs index 2ca6e643..6afc0441 100644 --- a/EnvelopeGenerator.Application/EmailTemplates/Commands/Update/UpdateEmailTemplateCommandHandler.cs +++ b/EnvelopeGenerator.Application/EmailTemplates/Commands/Update/UpdateEmailTemplateCommandHandler.cs @@ -1,7 +1,7 @@ using AutoMapper; using DigitalData.Core.Abstraction.Application.Repository; using EnvelopeGenerator.Application.Dto; -using EnvelopeGenerator.Application.Exceptions; +using DigitalData.Core.Exceptions; using EnvelopeGenerator.Domain; using EnvelopeGenerator.Domain.Entities; using MediatR; diff --git a/EnvelopeGenerator.Application/EnvelopeGenerator.Application.csproj b/EnvelopeGenerator.Application/EnvelopeGenerator.Application.csproj index 031ae9a6..f1c96702 100644 --- a/EnvelopeGenerator.Application/EnvelopeGenerator.Application.csproj +++ b/EnvelopeGenerator.Application/EnvelopeGenerator.Application.csproj @@ -17,6 +17,7 @@ + diff --git a/EnvelopeGenerator.Application/EnvelopeReceivers/Queries/ReadEnvelopeReceiverQuery.cs b/EnvelopeGenerator.Application/EnvelopeReceivers/Queries/ReadEnvelopeReceiverQuery.cs index bdfddd2b..0c758c27 100644 --- a/EnvelopeGenerator.Application/EnvelopeReceivers/Queries/ReadEnvelopeReceiverQuery.cs +++ b/EnvelopeGenerator.Application/EnvelopeReceivers/Queries/ReadEnvelopeReceiverQuery.cs @@ -1,6 +1,6 @@ using EnvelopeGenerator.Application.Dto.EnvelopeReceiver; using EnvelopeGenerator.Application.Envelopes.Queries; -using EnvelopeGenerator.Application.Exceptions; +using DigitalData.Core.Exceptions; using EnvelopeGenerator.Application.Extensions; using EnvelopeGenerator.Application.Receivers.Queries; using EnvelopeGenerator.Extensions; diff --git a/EnvelopeGenerator.Application/EnvelopeReceivers/Queries/ReceiverAlreadySignedQuery.cs b/EnvelopeGenerator.Application/EnvelopeReceivers/Queries/ReceiverAlreadySignedQuery.cs index 37880420..3d6dd3cc 100644 --- a/EnvelopeGenerator.Application/EnvelopeReceivers/Queries/ReceiverAlreadySignedQuery.cs +++ b/EnvelopeGenerator.Application/EnvelopeReceivers/Queries/ReceiverAlreadySignedQuery.cs @@ -1,5 +1,5 @@ using DigitalData.Core.Abstraction.Application.Repository; -using EnvelopeGenerator.Application.Exceptions; +using DigitalData.Core.Exceptions; using EnvelopeGenerator.Domain; using EnvelopeGenerator.Domain.Entities; using EnvelopeGenerator.Extensions; diff --git a/EnvelopeGenerator.Application/Exceptions/BadRequestException.cs b/EnvelopeGenerator.Application/Exceptions/BadRequestException.cs deleted file mode 100644 index ce45ba75..00000000 --- a/EnvelopeGenerator.Application/Exceptions/BadRequestException.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace EnvelopeGenerator.Application.Exceptions; - -/// -/// Represents an exception that is thrown when a bad request is encountered. -/// -public class BadRequestException : Exception -{ - /// - /// Initializes a new instance of the class. - /// - public BadRequestException() - { - } - - /// - /// Initializes a new instance of the class with a specified error message. - /// - /// The message that describes the error. - public BadRequestException(string? message) : base(message) - { - } -} diff --git a/EnvelopeGenerator.Application/Exceptions/NotFoundException.cs b/EnvelopeGenerator.Application/Exceptions/NotFoundException.cs deleted file mode 100644 index 67b58ef3..00000000 --- a/EnvelopeGenerator.Application/Exceptions/NotFoundException.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace EnvelopeGenerator.Application.Exceptions; - -/// -/// Represents an exception that is thrown when a requested resource is not found. -/// -public class NotFoundException : Exception -{ - /// - /// Initializes a new instance of the class. - /// - public NotFoundException() - { - } - - /// - /// Initializes a new instance of the class with a specified error message. - /// - /// The message that describes the error. - public NotFoundException(string? message) : base(message) - { - } -} diff --git a/EnvelopeGenerator.Application/Extensions/TaskExtensions.cs b/EnvelopeGenerator.Application/Extensions/TaskExtensions.cs index afa1bc6c..b08e839b 100644 --- a/EnvelopeGenerator.Application/Extensions/TaskExtensions.cs +++ b/EnvelopeGenerator.Application/Extensions/TaskExtensions.cs @@ -1,4 +1,4 @@ -using EnvelopeGenerator.Application.Exceptions; +using DigitalData.Core.Exceptions; namespace EnvelopeGenerator.Application.Extensions; diff --git a/EnvelopeGenerator.Application/Histories/Queries/Read/ReadHistoryQueryHandler.cs b/EnvelopeGenerator.Application/Histories/Queries/Read/ReadHistoryQueryHandler.cs index 287ab40a..ddc88001 100644 --- a/EnvelopeGenerator.Application/Histories/Queries/Read/ReadHistoryQueryHandler.cs +++ b/EnvelopeGenerator.Application/Histories/Queries/Read/ReadHistoryQueryHandler.cs @@ -1,6 +1,6 @@ using AutoMapper; using EnvelopeGenerator.Application.Interfaces.Repositories; -using EnvelopeGenerator.Application.Exceptions; +using DigitalData.Core.Exceptions; using MediatR; namespace EnvelopeGenerator.Application.Histories.Queries.Read; diff --git a/EnvelopeGenerator.Application/SQL/DocumentCreateReadSQL.cs b/EnvelopeGenerator.Application/SQL/DocumentCreateReadSQL.cs index fd61166f..41986eda 100644 --- a/EnvelopeGenerator.Application/SQL/DocumentCreateReadSQL.cs +++ b/EnvelopeGenerator.Application/SQL/DocumentCreateReadSQL.cs @@ -1,6 +1,6 @@ using Dapper; using EnvelopeGenerator.Application.Interfaces.SQLExecutor; -using EnvelopeGenerator.Application.Exceptions; +using DigitalData.Core.Exceptions; using EnvelopeGenerator.Domain.Entities; namespace EnvelopeGenerator.Application.SQL; diff --git a/EnvelopeGenerator.GeneratorAPI/Controllers/EmailTemplateController.cs b/EnvelopeGenerator.GeneratorAPI/Controllers/EmailTemplateController.cs index 752a1a1d..e11b886a 100644 --- a/EnvelopeGenerator.GeneratorAPI/Controllers/EmailTemplateController.cs +++ b/EnvelopeGenerator.GeneratorAPI/Controllers/EmailTemplateController.cs @@ -10,7 +10,7 @@ using EnvelopeGenerator.Application.Dto; using MediatR; using System.Threading.Tasks; using DigitalData.UserManager.Application.Services; -using EnvelopeGenerator.Application.Exceptions; +using DigitalData.Core.Exceptions; namespace EnvelopeGenerator.GeneratorAPI.Controllers; diff --git a/EnvelopeGenerator.GeneratorAPI/Middleware/ExceptionHandlingMiddleware.cs b/EnvelopeGenerator.GeneratorAPI/Middleware/ExceptionHandlingMiddleware.cs index f9d700a1..4b2e7218 100644 --- a/EnvelopeGenerator.GeneratorAPI/Middleware/ExceptionHandlingMiddleware.cs +++ b/EnvelopeGenerator.GeneratorAPI/Middleware/ExceptionHandlingMiddleware.cs @@ -1,6 +1,6 @@ namespace EnvelopeGenerator.GeneratorAPI.Middleware; -using EnvelopeGenerator.Application.Exceptions; +using DigitalData.Core.Exceptions; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using System.Net; diff --git a/EnvelopeGenerator.Infrastructure/Repositories/EnvlopeReceiverRepository.cs b/EnvelopeGenerator.Infrastructure/Repositories/EnvlopeReceiverRepository.cs index 024c02c6..9ff90935 100644 --- a/EnvelopeGenerator.Infrastructure/Repositories/EnvlopeReceiverRepository.cs +++ b/EnvelopeGenerator.Infrastructure/Repositories/EnvlopeReceiverRepository.cs @@ -2,7 +2,7 @@ using EnvelopeGenerator.Domain.Entities; using EnvelopeGenerator.Application.Interfaces.Repositories; using Microsoft.EntityFrameworkCore; -using EnvelopeGenerator.Application.Exceptions; +using DigitalData.Core.Exceptions; using EnvelopeGenerator.Domain; namespace EnvelopeGenerator.Infrastructure.Repositories;