public BusinessRuleValidationExceptionProblemDetails(BusinessRuleValidationException exception, BusinessRuleValidationEnumeration ruleValidationEnumeration) { Status = StatusCodes.Status400BadRequest; Type = nameof(BusinessRuleValidationExceptionProblemDetails); Errors = ProblemDetailsWrapErrors.GetErrors(exception, ruleValidationEnumeration); }
public DuplicateExceptionProblemDetails(DuplicateException exception, DuplicateRuleValidationEnumeration exceptionDuplicateRuleValidationEnumeration) { Status = StatusCodes.Status400BadRequest; Type = nameof(DuplicateExceptionProblemDetails); Errors = ProblemDetailsWrapErrors.GetErrors(exception, exceptionDuplicateRuleValidationEnumeration); }
public InvalidCommandRuleValidationExceptionProblemDetails(InvalidCommandException exception) { Status = StatusCodes.Status400BadRequest; Type = nameof(InvalidCommandRuleValidationExceptionProblemDetails); Errors = ProblemDetailsWrapErrors.GetErrors(exception.Errors); }
public NotFoundExceptionProblemDetails(Exception exception) { Status = StatusCodes.Status404NotFound; Type = nameof(NotFoundExceptionProblemDetails); Errors = ProblemDetailsWrapErrors.GetErrors(exception, null); }
public JsonApiSerializerExceptionProblemDetails(JsonException exception) { Status = StatusCodes.Status500InternalServerError; Type = nameof(InvalidCommandRuleValidationExceptionProblemDetails); Errors = ProblemDetailsWrapErrors.GetErrors(exception, null); }
public InfrastructureExceptionProblemDetails(Exception exception) { Status = StatusCodes.Status500InternalServerError; Type = nameof(InfrastructureExceptionProblemDetails); Errors = ProblemDetailsWrapErrors.GetErrors(exception); }