s/catch (Throwable t)/catch (Exception e)
TeamDman opened this issue · 0 comments
https://t3.chat/share/m5pr4bd30y
- Don’t catch Throwable unless you must
- Catching Throwable also catches OutOfMemoryError, StackOverflowError, etc., which you typically don’t want to handle.
- Prefer catching Exception. If some mappers might throw Error, fix those mappers or document why Throwable is required.