Skip to content

Commit 71f946e

Browse files
committed
DATAKV-297 - Polishing.
Fix typo in exception message.
1 parent b56a7e5 commit 71f946e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/springframework/data/keyvalue/core/DefaultIdentifierGenerator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ public <T> T generateIdentifierOfType(TypeInformation<T> identifierType) {
5959
return (T) Long.valueOf(getSecureRandom().nextLong());
6060
}
6161

62-
throw new InvalidDataAccessApiUsageException("Non gereratable id type....");
62+
throw new InvalidDataAccessApiUsageException(
63+
String.format("Identifier cannot be generated for %s. Supported types are: UUID, String, Integer, and Long.",
64+
identifierType.getType().getName()));
6365
}
6466

6567
private SecureRandom getSecureRandom() {

0 commit comments

Comments
 (0)