Skip to content

Commit

Permalink
Add class information on exception
Browse files Browse the repository at this point in the history
Fixes quarkusio#20427

(cherry picked from commit 2b28ab7)
  • Loading branch information
metacosm authored and geoand committed Sep 29, 2021
1 parent b084e41 commit dd423c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static List<Type> resolveTypeParameters(DotName input, DotName target, In
inputClassInfo = fetchFromIndex(input, index);
} catch (Exception e) {
// keep compatibility with what clients already expect
throw new IllegalArgumentException(e);
throw new IllegalArgumentException("Couldn't fetch '" + input.toString() + "' class from index", e);
}

Type startingType = getType(inputClassInfo, index);
Expand Down Expand Up @@ -372,6 +372,7 @@ private static class ClassNotIndexedException extends RuntimeException {
private final DotName dotName;

public ClassNotIndexedException(DotName dotName) {
super("'" + dotName.toString() + "' is not indexed");
this.dotName = dotName;
}
}
Expand Down

0 comments on commit dd423c9

Please sign in to comment.