Hello!
I was looking around the documentation for an answer, but couldn't quite find anything satisfactory, so came here to ask instead 🙂
How should you handle exceptions inside bean definitions (like singletons and factories)? At the moment I'm just letting them error out and produce an absurd amount of stack traces, which is obviously not good at all.
My use-case is defining database connections. Should I be doing those some other way?
Thank you!
a
arnaud.giuliani
10/31/2023, 6:59 AM
you mean you have exception via Koin due to DB initialization problem?
t
Tmpod
01/13/2024, 11:56 PM
Yes. Imagine I define a database connection inside a Koin module. When it's instantiated (at start, for example), and it fails for some reason, how should I handle the exception?
sorry for the extreme delay, completely forgot about Slack 🙃