SuperFactoryManager icon indicating copy to clipboard operation
SuperFactoryManager copied to clipboard

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

Open TeamDman opened this issue 1 month ago • 0 comments

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

TeamDman avatar Nov 08 '25 19:11 TeamDman