Added few validation in call api
This commit is contained in:
@@ -37,4 +37,9 @@ public class FieldValidator {
|
||||
throw new ValidationException(Status.VALIDATION_ERROR, errors);
|
||||
}
|
||||
}
|
||||
|
||||
public FieldValidator addError( String errorMessage) {
|
||||
errors.add(errorMessage);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user