Rename InsertObjectFailedException.Request to Procedure
Updated ExceptionHandlingMiddleware to use the new Procedure property name when logging InsertObjectFailedException. Changed error title for BadRequestException to "Bad Procedure". Removed unused System.Text.Json using directive from InsertObjectProcedure.cs.
This commit is contained in:
@@ -4,20 +4,20 @@ namespace ReC.Application.Common.Exceptions;
|
||||
|
||||
public class InsertObjectFailedException : Exception
|
||||
{
|
||||
public InsertObjectProcedure Request { get; }
|
||||
public InsertObjectProcedure Procedure { get; }
|
||||
|
||||
public InsertObjectFailedException(InsertObjectProcedure request) : base()
|
||||
public InsertObjectFailedException(InsertObjectProcedure procedure) : base()
|
||||
{
|
||||
Request = request;
|
||||
Procedure = procedure;
|
||||
}
|
||||
|
||||
public InsertObjectFailedException(InsertObjectProcedure request, string? message) : base(message)
|
||||
public InsertObjectFailedException(InsertObjectProcedure procedure, string? message) : base(message)
|
||||
{
|
||||
Request = request;
|
||||
Procedure = procedure;
|
||||
}
|
||||
|
||||
public InsertObjectFailedException(InsertObjectProcedure request, string? message, Exception? innerException) : base(message, innerException)
|
||||
public InsertObjectFailedException(InsertObjectProcedure procedure, string? message, Exception? innerException) : base(message, innerException)
|
||||
{
|
||||
Request = request;
|
||||
Procedure = procedure;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user