feat: Add custom UnauthorizedException + mapper
Compare changes
Files
2+ 31
− 0
Resolves #52 (closed)
This MR adds a custom UnauthorizedException as well as a corresponding mapper class. This approach was used over the javax.rs.NotAuthorizedException since it exhibited odd behavior when paired with a mapper.
Logging the javax.rs.NotAuthorizedException
within the ExceptionMapper would not reveal the cause. This behavior is not desirable since it does not provide adequate information when it is thrown in response to a separate exception bubbling up.
Copyright © Eclipse Foundation, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Copyright Agent