flyrain commented on code in PR #4961:
URL: https://github.com/apache/polaris/pull/4961#discussion_r3648800188
##########
runtime/service/src/main/java/org/apache/polaris/service/exception/PolarisExceptionMapper.java:
##########
@@ -58,6 +60,9 @@ private Response.Status getStatus(PolarisException exception)
{
case PolicyMappingAlreadyExistsException
policyMappingAlreadyExistsException ->
Response.Status.CONFLICT;
case PolicyInUseException policyInUseException ->
Response.Status.BAD_REQUEST;
+ case NoSuchSemanticModelException noSuchSemanticModelException ->
Response.Status.NOT_FOUND;
Review Comment:
Yeah, this is similar to class `NoSuchTableException`,
`NoSuchNamespaceException`, `NoSuchPolicyException`, and etc.
--
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]