W3cubDocs

/Elixir 1.18

Source File.Error exception

An exception that is raised when a file operation fails.

The following fields of this exception are public and can be accessed freely:

  • :path (Path.t/0) - the path of the file that caused the error
  • :reason (File.posix/0) - the reason for the error

© 2012-2024 The Elixir Team
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/elixir/1.18.1/File.Error.html