Super Factory Manager ( SFM )

Super Factory Manager ( SFM )

20M Downloads

s/catch (Throwable t)/catch (Exception e)

TeamDman opened this issue · 0 comments

commented

https://t3.chat/share/m5pr4bd30y

  1. 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.

https://stackoverflow.com/a/2274130/11141271