From 443c5d677ff54775dbfbb592005a1405645159a5 Mon Sep 17 00:00:00 2001 From: Fabian Hueske Date: Thu, 15 May 2014 17:52:14 +0200 Subject: [PATCH] Improved exception message in WritableTypeInfo. --- .../eu/stratosphere/api/java/typeutils/WritableTypeInfo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stratosphere-java/src/main/java/eu/stratosphere/api/java/typeutils/WritableTypeInfo.java b/stratosphere-java/src/main/java/eu/stratosphere/api/java/typeutils/WritableTypeInfo.java index d13a31dac3c..56fc7e16083 100644 --- a/stratosphere-java/src/main/java/eu/stratosphere/api/java/typeutils/WritableTypeInfo.java +++ b/stratosphere-java/src/main/java/eu/stratosphere/api/java/typeutils/WritableTypeInfo.java @@ -43,7 +43,8 @@ public class WritableTypeInfo extends TypeInformation imp return new WritableComparator(sortOrderAscending, typeClass); } else { - throw new UnsupportedOperationException("Writable does not implement Comparable interface."); + throw new UnsupportedOperationException("Cannot create Comparator for "+typeClass.getCanonicalName()+". " + + "Class does not implement Comparable interface."); } } -- GitLab