예제 #1
0
 public CustomException(IEnumerable <CustomValidationError> validationErrors)
 {
     Error = new CustomError(validationErrors);
 }
예제 #2
0
 public CustomException(string message, int statusCode = 400)
 {
     Error = new CustomError(new List <CustomValidationError> {
         new CustomValidationError(message)
     }, statusCode);
 }
예제 #3
0
 public CustomException(CustomValidationError validationError)
 {
     Error = new CustomError(new List <CustomValidationError> {
         validationError
     });
 }
예제 #4
0
 public CustomException(string field, string message)
 {
     Error = new CustomError(new List <CustomValidationError> {
         new CustomValidationError(field, message)
     });
 }