Open trayliang opened 8 months ago
thanks cr
Hi, I just added lisence,.
Extending business exceptions through the java spi mechanism
Please describe your changes in more detail. Abou why is it so important / why do we need this / what problem it solves.
Extending business exceptions through the java spi mechanism
Please describe your changes in more detail. Abou why is it so important / why do we need this / what problem it solves.
If we are based on plug-ins, there is no way to scale our business based on exceptions The code then doesn't know how the response body should return, For example: We authenticate the user through the plug-in, if the user does not have permission, theory The upper system should tell the user that there is no access permission. Normally we can do that in java Throw an exception and wrap the response by catching the exception
This pr didn't import any new features, just refactoring, right?
This pr didn't import any new features, just refactoring, right?
I think this PR provides the ability to extend exceptions through spi, and I think this is also the ability of this plugin to improve
This code logic is not very difficult, maybe I describe the problem, you can look at the implementation of the code, in fact, can solve the business above the exception capture pain points
@nic-chen please help to check
Please answer these questions before submitting a pull request
Why submit this pull request? Extending business exceptions through the java spi mechanism
Related issues
Bugfix
why is it so important / why do we need this / what problem it solves. If we are based on plug-ins, there is no way to scale our business based on exceptions The code is so old that it doesn't know how the response body should return, For example:
We authenticate the user through the plug-in, if the user does not have permission, theory The upper system should tell the user that there is no access permission. Normally we can do that in java Throw an exception and wrap the response by catching the exception
New feature or improvement
Describe the details and related test reports.
Source branch
Related commits and pull requests
Target branch