phet commented on code in PR #3899:
URL: https://github.com/apache/gobblin/pull/3899#discussion_r1542171456
##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/core/GobblinServiceManager.java:
##########
@@ -265,7 +266,9 @@ public static GobblinServiceManager
create(GobblinServiceConfiguration serviceCo
*/
public static <T> T getClass(Class<T> classToGet) {
if (GOBBLIN_SERVICE_GUICE_MODULE == null) {
- throw new RuntimeException("getClass called without calling create
method to initialize GobblinServiceGuiceModule");
+ throw new RuntimeException(String.format("getClass called to obtain %s
without calling create method to "
+ + "initialize GobblinServiceGuiceModule. Stacktrace of current
thread %s", classToGet,
+ Arrays.toString(Thread.currentThread().getStackTrace()).replace(",
", "\n at ")));
Review Comment:
sorry if my comment was confusing, but this `RuntimeException` should
generate a stacktrace already
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]