remondis-it / remap

A declarative mapping library to simplify testable object mappings.
Apache License 2.0
122 stars 22 forks source link

A read-only property causes misleading exception when omitted as destination property #143

Open schuettec opened 3 years ago

schuettec commented 3 years ago

Omitting a read-only property in a mapper causes a misleading exception:

com.remondis.remap.MappingException: The get-method for property 'bruttoGewicht' in type <YADIYADI> is not a valid Java Bean property.

An exception that clearifies that a read-only property was omitted, would be better.