Skip to content

Commit

Permalink
Remove the private constructors of session management child exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pamodaaw committed Jul 23, 2019
1 parent 239fd42 commit 216fc57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,4 @@ public SessionManagementClientException(String message, String errorCode, String

super(message, errorCode, description, cause);
}

// The constructor is made private to avoid generating exceptions without error code and description.
private SessionManagementClientException(String message, Throwable cause) {

super(message, cause);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ public SessionManagementException(String message, String errorCode, String descr
this.description = description;
}

// The constructor is made private to avoid generating exceptions without error code and description.
public SessionManagementException(String message, Throwable cause) {
/**
* The constructor is made private to avoid generating exceptions without error code and description.
*/
private SessionManagementException(String message, Throwable cause) {

super(message, cause);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ public SessionManagementServerException(SessionMgtConstants.ErrorMessages error,
super(error, description, cause);
}

// The constructor is made private to avoid generating exceptions without error code and description.
private SessionManagementServerException(String message, Throwable cause) {

super(message, cause);
}

public SessionManagementServerException(String message, String errorCode, String description, Throwable cause) {

super(message, errorCode, description, cause);
Expand Down

0 comments on commit 216fc57

Please sign in to comment.