#Error Throwing Philosophy
1 messages · Page 1 of 1 (latest)
Depends
Think about what the "default" way to handle it should be
If it's "pass it up to the caller" then an error is correct, because try is the "default" error handling strategy
If it's "choose a different value", "assert" or "store the null" then it should be an optional
Rad, thank you!