javamak commented on code in PR #4948:
URL: https://github.com/apache/fineract/pull/4948#discussion_r2274719365
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/dataqueries/service/DatatableReportingProcessService.java:
##########
@@ -59,7 +60,8 @@ public Response processRequest(String reportName,
MultivaluedMap<String, String>
final String parameterTypeValue =
ApiParameterHelper.parameterType(queryParams) ? "parameter" : "report";
final Map<String, String> reportParams = getReportParams(queryParams);
ResponseHolder response = findReportExportService(exportMode) //
- .orElseThrow(() -> new IllegalArgumentException("Unsupported
export target: " + exportMode)) //
+ .orElseThrow(() -> new
PlatformInternalServerException("error.msg.report.export.mode.unavailable",
Review Comment:
Exception changed to GeneralPlatformDomainRuleException and test cases
added. I was not sure if this is the correct exception as it is converted to
403 which in my understanding used for Auth.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]