Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...

ISO/IEC TR 24772:2010

Argument passing to library functions [TRJ]

Bibliography

[Bloch 2008]

Item 38. Check parameters for validity

...