Attila Doroszlai created HDDS-15023:
---------------------------------------

             Summary: Change S3ErrorTable into enum
                 Key: HDDS-15023
                 URL: https://issues.apache.org/jira/browse/HDDS-15023
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: s3gateway
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


S3ErrorTable defines errors as instances of OS3Exception, leading to potential 
misuse:

- Stack trace of these constants reflect class initialization, not the place 
where the actual error is encountered.  New instance should be thrown instead 
(e.g. via {{S3ErrorTable#newError}}).
- Instances are constants, but their properties are mutable.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to