コード例 #1
0
 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);
 }
コード例 #4
0
 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);
 }
コード例 #6
0
 public InfrastructureExceptionProblemDetails(Exception exception)
 {
     Status = StatusCodes.Status500InternalServerError;
     Type   = nameof(InfrastructureExceptionProblemDetails);
     Errors = ProblemDetailsWrapErrors.GetErrors(exception);
 }