public CustomException(IEnumerable <CustomValidationError> validationErrors) { Error = new CustomError(validationErrors); }
public CustomException(string message, int statusCode = 400) { Error = new CustomError(new List <CustomValidationError> { new CustomValidationError(message) }, statusCode); }
public CustomException(CustomValidationError validationError) { Error = new CustomError(new List <CustomValidationError> { validationError }); }
public CustomException(string field, string message) { Error = new CustomError(new List <CustomValidationError> { new CustomValidationError(field, message) }); }