Validate method arguments to ensure that they fall within the bounds of the method's intended design. This practice ensures that operations on the method's parameters yield valid results. Failure to validate method arguments can result in incorrect calculations, runtime exceptions, violation of class invariants, and inconsistent object state.
...
Argument passing to library functions [TRJ] |
Bibliography
Item 38. Check parameters for validity |
...