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

[BUG] httpmate does not invoke exception mappers for ExceptionInInitializerError #15

Open
lestephane opened this issue Jul 29, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@lestephane
Copy link

Describe the bug

When instantiating a use case, an ExceptionInInitializerError can be thrown when an exception is thrown in the class' static initializer. This exception is currently not handled:

final Object useCase = useCaseInstantiator.instantiate(useCaseClass);

To Reproduce

  • Throw an exception from a use case static initializer
  • Configure httpmate to instantiate that use case
  • Causes the instantiation to happen
  • The default exception mapper is not invoked

Expected behavior

  • The exception mapping logic should occur when an ExceptionInInitializerError is thrown, regardless of whether it happens during use case instantiation or use case invocation.
@lestephane lestephane added the bug Something isn't working label Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants