More sanity with exception types and raises docs.
[pyutils.git] / src / pyutils / files / file_utils.py
index d05cae6b592110847fc73ee9d7e2499ff80c9481..16b71ab9b5cea1914eb91180f93e04b5ecc14156 100644 (file)
@@ -62,6 +62,9 @@ def slurp_file(
 
     Returns:
         A list of lines from the read and transformed file contents.
+
+    Raises:
+        Exception: filename not found or can't be read.
     """
 
     ret = []
@@ -310,6 +313,9 @@ def create_path_if_not_exist(
         on_error: If set, it's invoked on error conditions and passed then
             path and OSError that it caused.
 
+    Raises:
+        OSError: an exception occurred and on_error not set.
+
     See also :meth:`does_file_exist`.
 
     .. warning::