terrymanu opened a new issue, #20036:
URL: https://github.com/apache/shardingsphere/issues/20036

   The current Exception is not very clear. It is better to redesign the 
exception hierarchy of ShardingSphere.
   
   1. The exception should split to ShardingSphereException which can throw to 
SDK layer for operation error by user, and ShardingSphereInsideException for 
internal catch;
   1. The ShardingSphereException should include error categories and error 
codes, user can query like dictionary by the error categories;
   1. ShardingSphereInsideException should catch by ShardingSphere and never 
throw to SDK directly, it can be thrown by error packet or re-throw by 
ShardingSphereException with error category and error code;
   1. Re-throw other exceptions such as: IllegalArgumentException to 
ShardingSphereException.


-- 
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]

Reply via email to