Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Details of this exception are unusually passed here not in the message or getCause() but instead they are passed in a separate field meta.
The problem is that in many contexts where toString() is used these details are completely ignored, which produces very confusing and incomplete messages, like this:
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteExecutionException: Error from server at https://127.0.0.1:59006/solr: Error in command payload
at __randomizedtesting.SeedInfo.seed([8AD470708D05DCDB:EF407342F1EBA057]:0)
at org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteExecutionException.create(BaseHttpSolrClient.java:66)
I propose to add the details to the message.