Skip to content

Commit

Permalink
EPMRPP-96396 add error message (#33)
Browse files Browse the repository at this point in the history
* EPMRPP-96396 add error message
  • Loading branch information
grabsefx authored Oct 25, 2024
1 parent 9ee1332 commit 3aaf677
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ private StatusCodeMapping() {
// Server Settings related
put(ErrorType.SERVER_SETTINGS_NOT_FOUND, HttpStatus.NOT_FOUND);
put(ErrorType.SERVER_SETTINGS_ALREADY_EXISTS, HttpStatus.CONFLICT);
put(ErrorType.USER_ALREADY_ASSIGNED, HttpStatus.CONFLICT);
put(ErrorType.EMAIL_CONFIGURATION_IS_INCORRECT, HttpStatus.FORBIDDEN);
// ======================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public enum ErrorType {
DASHBOARD_UPDATE_ERROR(4096, "Dashboard update request contains invalid data. {}"),

/**
* If widget content can't be loaded because some of properties are incorrect
* If widget content can't be loaded because some of the properties are incorrect
*/
UNABLE_LOAD_WIDGET_CONTENT(4097,
"Unable to load widget content. Widget properties contain errors: {}"),
Expand All @@ -323,6 +323,12 @@ public enum ErrorType {
SERVER_SETTINGS_ALREADY_EXISTS(40911,
"Server settings with '{}' profile already exists. You couldn't create the duplicate."),

/**
* Unable to assign user to the organization or project twice
*/
USER_ALREADY_ASSIGNED(40912, "User '{}' cannot be assigned to {} twice. You couldn't create the duplicate."),


/**
* Unable remove resource from favorites
*/
Expand Down

0 comments on commit 3aaf677

Please sign in to comment.