Closed greenlaw110 closed 4 years ago
Add two new generic exception types:
org.osgl.exceptions.AccessDeniedException
org.osgl.exceptions.ResourceNotFoundException
Add two new methods to ISObject interface:
ISObject
ISObject.isExists()
ISObject.isAccessDenied()
In case back service encountered resource not found exceptions, it shall throw out ResourceNotFoundException e.g.
ResourceNotFoundException
java.io.FileNotFoundException
AmazonS3Exception
In case back service encountered access denied or permission issue, it shall throw out AccessDeniedException, e.g.
AccessDeniedException
java.io.AccessDeniedException
Add two new generic exception types:
org.osgl.exceptions.AccessDeniedException
org.osgl.exceptions.ResourceNotFoundException
Add two new methods to
ISObject
interface:ISObject.isExists()
ISObject.isAccessDenied()
In case back service encountered resource not found exceptions, it shall throw out
ResourceNotFoundException
e.g.java.io.FileNotFoundException
for file system serviceAmazonS3Exception
with status code equals to 404 for S3 serviceIn case back service encountered access denied or permission issue, it shall throw out
AccessDeniedException
, e.g.java.io.AccessDeniedException
for file system serviceAmazonS3Exception
with status code equals to 403 for S3 service