Question
When is it appropriate to write code that constructs and throws an error?
- A. When a public method's pre-conditions are violated
- B. When a public method's post-conditions are violated
- C. When a nonpublic method's pre-conditions are violated
- D. When a nonpublic method's post-conditions are violated
- E. Never
E.
Note
It is never appropriate for application programmers to construct and throw errors.
PreviousNextRelated