Skip to content

Commit

Permalink
Add class information on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Sep 28, 2021
1 parent 39f6472 commit 2b28ab7
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 2b28ab7

Please sign in to comment.