From 162f5c6936575da82a86215daaf972fb00313fe2 Mon Sep 17 00:00:00 2001 From: Viktor Kovtun <viktor.kovtun@id.ethz.ch> Date: Tue, 31 Aug 2021 13:40:25 +0200 Subject: [PATCH] SSDM-11462 Changed the message of the exception. --- .../generic/server/asapi/v3/helper/sort/SortAndPage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbis/source/java/ch/ethz/sis/openbis/generic/server/asapi/v3/helper/sort/SortAndPage.java b/openbis/source/java/ch/ethz/sis/openbis/generic/server/asapi/v3/helper/sort/SortAndPage.java index efb786a551e..82f4e325199 100644 --- a/openbis/source/java/ch/ethz/sis/openbis/generic/server/asapi/v3/helper/sort/SortAndPage.java +++ b/openbis/source/java/ch/ethz/sis/openbis/generic/server/asapi/v3/helper/sort/SortAndPage.java @@ -178,7 +178,8 @@ public class SortAndPage { if (subFo.getSortBy() != null && subFo.getSortBy().getSortings() != null && !subFo.getSortBy().getSortings().isEmpty()) { - throw new IllegalArgumentException("Only collection and map types can be sorted."); + throw new IllegalArgumentException("Nested sort options can be used only " + + "for sorting nested collection or map types."); } Collection newValue = sortAndPage(Collections.singleton(value), c, subFo); -- GitLab