Skip to content

Commit

Permalink
[SDCISA-15833, swisspost#170] Make exception factories contructors pa…
Browse files Browse the repository at this point in the history
…ckage-private.
  • Loading branch information
hiddenalpha committed May 21, 2024
1 parent a898e93 commit f972ec5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
*/
class ThriftyExceptionFactory implements ExceptionFactory {

ThriftyExceptionFactory() {
}

@Override
public ReplyException newReplyException(ReplyFailure failureType, int failureCode, String message) {
return new NoStackReplyException(failureType, failureCode, message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
*/
class WastefulExceptionFactory implements ExceptionFactory {

WastefulExceptionFactory() {
}

@Override
public ReplyException newReplyException(ReplyFailure failureType, int failureCode, String message) {
return new ReplyException(failureType, failureCode, message);
Expand Down

0 comments on commit f972ec5

Please sign in to comment.