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.
23 lines
678 B
C#
23 lines
678 B
C#
using ReC.Application.Common.Procedures.InsertProcedure;
|
|
|
|
namespace ReC.Application.Common.Exceptions;
|
|
|
|
public class InsertObjectFailedException : Exception
|
|
{
|
|
public InsertObjectProcedure Procedure { get; }
|
|
|
|
public InsertObjectFailedException(InsertObjectProcedure procedure) : base()
|
|
{
|
|
Procedure = procedure;
|
|
}
|
|
|
|
public InsertObjectFailedException(InsertObjectProcedure procedure, string? message) : base(message)
|
|
{
|
|
Procedure = procedure;
|
|
}
|
|
|
|
public InsertObjectFailedException(InsertObjectProcedure procedure, string? message, Exception? innerException) : base(message, innerException)
|
|
{
|
|
Procedure = procedure;
|
|
}
|
|
} |