Skip to content

[BUG] ToString() Representations of objects are appended to exception messages  #126

@quantummaiddeveloper

Description

@quantummaiddeveloper

if an exception during mapping occurs, it is catched and rethrown with a generic exception containing it as cause. The object to be mapped is then added with its toString() representation to the thrown exception's message. This can lead to very large exception messages.

To Reproduce
Throw an exception during mapping, e.g. from a custom Marshaller

Expected behavior
Throw a custom MapMaidException that contains the object to be mapped as field.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions