Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MappingException malformed error message in log #3834

Closed
MDeLuise opened this issue Aug 1, 2023 · 0 comments · Fixed by #3835
Closed

MappingException malformed error message in log #3834

MDeLuise opened this issue Aug 1, 2023 · 0 comments · Fixed by #3835
Labels
Bug This is a bug or an unexpected behaviour. Fix it!

Comments

@MDeLuise
Copy link
Contributor

MDeLuise commented Aug 1, 2023

Describe the bug
While throwing MappingException a malformed error message is printed.

For example throw new MappingException(StorableErrorCodes.INVALID_VALUE, "arg1", "arg2") logs Exception in thread "main" org.eclipse.kapua.service.storable.exception.MappingException: The value of mapping arg1 of value arg2 is not compatible with type {2}.

MappingException is not throwed anywhere in the code, but its subclasses (InvalidValueMappingException and UnsupportedTypeMappingException) are. For example in MappingUtils.java there is throw new InvalidValueMappingException(e, name, value, Date.class).

@Coduz Coduz added the Bug This is a bug or an unexpected behaviour. Fix it! label Aug 1, 2023
@Coduz Coduz moved this to Done in Eclipse Kapua 1.7.0 Jun 12, 2024
@Coduz Coduz moved this to Done in Eclipse Kapua 1.5.8 Jun 12, 2024
@Coduz Coduz moved this to Done in Eclipse Kapua 2.0.0 Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug or an unexpected behaviour. Fix it!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants