Added few validation in call api

This commit is contained in:
harish
2024-09-13 15:22:43 +05:30
parent 93c9662656
commit 7e2a22c817
12 changed files with 120 additions and 58 deletions

View File

@@ -37,4 +37,9 @@ public class FieldValidator {
throw new ValidationException(Status.VALIDATION_ERROR, errors);
}
}
public FieldValidator addError( String errorMessage) {
errors.add(errorMessage);
return this;
}
}