osglworks / java-tool

Some simple common Java utilities
Apache License 2.0
52 stars 18 forks source link

Improve storage logic on handling resource not found and access denied exceptions #231

Closed greenlaw110 closed 4 years ago

greenlaw110 commented 4 years ago

Add two new generic exception types:

Add two new methods to ISObject interface:

In case back service encountered resource not found exceptions, it shall throw out ResourceNotFoundException e.g.

In case back service encountered access denied or permission issue, it shall throw out AccessDeniedException, e.g.