Skip to content

Conversation

@TheMaskedTurtle
Copy link
Contributor

PR Summary

  • adapt StudyException to extend AbstractBusinessException
  • adapt RestResponseEntityExceptionHandler to extend AbstractBaseRestExceptionHandler
  • fix tests

- adapt StudyException to extend AbstractBusinessException
- adapt RestResponseEntityExceptionHandler to extend AbstractBaseRestExceptionHandler
- fix tests

Signed-off-by: Joris Mancini <[email protected]>
}

@Override
public @NonNull BusinessErrorCode getBusinessErrorCode() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return StudyBusinessErrorCode to avoid casting


@Override
protected @NonNull StudyBusinessErrorCode getBusinessCode(StudyException e) {
return (StudyBusinessErrorCode) e.getBusinessErrorCode();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove casting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants