You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "justinmclean (via GitHub)" <gi...@apache.org> on 2025/08/19 04:43:25 UTC

[I] [Improvement] Fix exception handling in handle() in RoleDetails.java [gravitino]

justinmclean opened a new issue, #8157:
URL: https://github.com/apache/gravitino/issues/8157

   ### What would you like to be improved?
   
   In clients/cli/src/main/java/org/apache/gravitino/cli/commands/RoleDetails.java
   
   ```
       try {
         GravitinoClient client = buildClient(metalake);
         objects = client.getRole(role).securableObjects();
       } catch (NoSuchMetalakeException err) {
         exitWithError(ErrorMessages.UNKNOWN_METALAKE);
       } catch (NoSuchUserException err) {
         exitWithError(ErrorMessages.UNKNOWN_GROUP);
       } catch (Exception exp) {
         exitWithError(exp.getMessage());
       }
   ```
   
   ### How should we improve?
   
   The NoSuchUserException is exiting with error ErrorMessages.UNKNOWN_GROUP, but should be about the role.


-- 
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: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Fix exception handling in handle() in RoleDetails.java [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #8157:
URL: https://github.com/apache/gravitino/issues/8157#issuecomment-3199294984

   Yes, as usual, if you need a hand just ask.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Fix exception handling in handle() in RoleDetails.java [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean closed issue #8157: [Improvement] Fix exception handling in handle() in  RoleDetails.java
URL: https://github.com/apache/gravitino/issues/8157


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Fix exception handling in handle() in RoleDetails.java [gravitino]

Posted by "pandeysambhi (via GitHub)" <gi...@apache.org>.
pandeysambhi commented on issue #8157:
URL: https://github.com/apache/gravitino/issues/8157#issuecomment-3199237049

   @justinmclean Can I take this up ?
   
   


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org