JDK 8 code review request for 7055295: (reflect) add conventional constructor to GenericSignatureFormatError (original) (raw)

Joe Darcy joe.darcy at oracle.com
Thu Jun 16 16:35:53 UTC 2011


On 6/16/2011 9:21 AM, Mike Duigou wrote:

Perhaps the chained exception constructor would also be useful. I can imagine that whatever was parsing the signature might throw an exception with it's parse state that could then be captured (without needing to use initCause()) in the thrown GenericSignatureFormatError

Mike

Hi Mike.

At least as currently used in the JDK, the String constructor would suffice -- there are no causal exceptions in how the signature parser is coded.

(If we were to add a third constructor taking a cause, we should also add a fourth constructor taking a cause and a message.)

-Joe



More information about the core-libs-dev mailing list