Skip to content

Commit

Permalink
Remove unwanted error constant
Browse files Browse the repository at this point in the history
  • Loading branch information
AnjanaSamindraPerera committed Mar 8, 2024
1 parent 36cd22c commit dc5c26f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ public enum ErrorMessages {
ERROR_CODE_REGEX_VIOLATION("SUO-10001", "Regex validation error",
"%s attribute value doesn't match with %s regex pattern"),
ERROR_CODE_LENGTH_VIOLATION("SUO-10002", "Length validation error",
"%s attribute should be between %s and %s characters"),
ERROR_CODE_INVALID_SCENARIO("SUO-10003","Invalid scenario","Invalid scenario: '%s'");
"%s attribute should be between %s and %s characters");

private final String code;
private final String message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static Scenarios getScenario(String scenarioName) throws IdentitySCIMExce
}
}
}
throw new IdentitySCIMException(SCIMCommonConstants.ErrorMessages.ERROR_CODE_INVALID_SCENARIO.getMessage());
throw new IdentitySCIMException("Invalid scenario: " + scenarioName);
}

}

0 comments on commit dc5c26f

Please sign in to comment.