iwfm.file_missing

iwfm.file_missing(filename, context=None)[source]

Raise FileNotFoundError for a file that does not exist.

Parameters:
  • filename (str) – file name

  • context (str, optional) – additional context message (e.g., “referenced in groundwater file”)

Return type:

nothing — this function never returns normally.

Raises:

FileNotFoundError – Always, with the file name, optional context, and current working directory in the message.