@@ -56,6 +56,7 @@ public:
5656 /// @param label A label to attach to the temporary file path
5757 /// @param extension An extension of the temporary file path
5858 /// @throws std::filesystem::filesystem_error if cannot create a file
59+ /// @throws std::invalid_argument if arguments are ill-formatted
5960 explicit file(std::string_view label = "", std::string_view extension = "");
6061
6162 /// Creates a unique temporary file and opens it for reading and writing
@@ -64,6 +65,7 @@ public:
6465 /// @param label A label to attach to the temporary file path
6566 /// @param extension An extension of the temporary file path
6667 /// @throws std::filesystem::filesystem_error if cannot create a file
68+ /// @throws std::invalid_argument if arguments are ill-formatted
6769 static file text(std::string_view label = "",
6870 std::string_view extension = "");
6971
@@ -73,7 +75,8 @@ public:
7375 /// @param label A label to attach to the temporary file path
7476 /// @param extension An extension of the temporary file path
7577 /// @returns The new temporary file
76- /// @throws std::filesystem::filesystem_error if @p path is not a file
78+ /// @throws std::filesystem::filesystem_error if path is not a file
79+ /// @throws std::invalid_argument if arguments are ill-formatted
7780 static file copy(const std::filesystem::path& path,
7881 std::string_view label = "",
7982 std::string_view extension = "");
@@ -115,7 +118,8 @@ private:
115118 /// @param label A label to attach to the temporary file path
116119 /// @param extension An extension of the temporary file path
117120 /// @param binary Whether the managed file is opened in binary write mode
118- /// @throws fs::filesystem_error if cannot create a file
121+ /// @throws std::filesystem::filesystem_error if cannot create a file
122+ /// @throws std::invalid_argument if arguments are ill-formatted
119123 file(std::string_view label, std::string_view extension, bool binary);
120124
121125 /// Creates a unique temporary file
0 commit comments