Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: wordsmithing

...

APIs should use a combination of these approaches both to help clients distinguish correct results from incorrect ones and to encourage careful handling of any incorrect results. In some cases, an error value instead of an exception should be returned, and vice versa; and in other cases an exception should be thrown. A method should not return a value that can hold both valid return data and an error code; see ERR52-JG. Avoid in-band error indicators for more details.

...