Add detail to IllegalArgumentException handling in BaseAsValidator
Basics
Logistics
Basics
Logistics
Description
BaseAsValidator generates an error message if an IllegalArgumentException is thrown by the convertmethod. This message doesn’t include any details derived from the exception, probably because in the original use cases the exception didn’t carry any details.
There are plenty of use cases in which it would be useful to pass detailed information up through this mechanism, and BaseAsValidator should be extended to do this.
BaseAsValidator
generates an error message if anIllegalArgumentException
is thrown by theconvert
method. This message doesn’t include any details derived from the exception, probably because in the original use cases the exception didn’t carry any details.There are plenty of use cases in which it would be useful to pass detailed information up through this mechanism, and
BaseAsValidator
should be extended to do this.