Question OOP-EXC-0075
HardWhen should a function return an error value (or Optional) instead of throwing?
- A.
When the 'failure' is an expected, common outcome, such as a lookup that may find nothing
- B.
Only in constructors
- C.
Never
- D.
Always
Sign up free to see the answer and a step-by-step explanation.