From a608f9a4350b723e9f07eaf00af45243737a17c9 Mon Sep 17 00:00:00 2001 From: Minh Nguyen Cong Date: Mon, 25 Mar 2024 19:46:50 +0700 Subject: [PATCH] fix: Update exception message for get representation content (#1239) --- src/main/java/com/box/sdk/BoxFile.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/box/sdk/BoxFile.java b/src/main/java/com/box/sdk/BoxFile.java index 2b747f7b7..58d5366d3 100644 --- a/src/main/java/com/box/sdk/BoxFile.java +++ b/src/main/java/com/box/sdk/BoxFile.java @@ -508,7 +508,8 @@ public void getRepresentationContent(String representationHint, String assetPath List reps = this.getInfoWithRepresentations(representationHint).getRepresentations(); if (reps.size() < 1) { - throw new BoxAPIException("No matching representations found"); + throw new BoxAPIException("No matching representations found for requested '" + representationHint + + "' hint"); } Representation representation = reps.get(0); String repState = representation.getStatus().getState();