Libmagicxx v10.0.3
A modern C++23 wrapper for libmagic — the library that powers the Unix file command.
Loading...
Searching...
No Matches
Recognition::FilesystemError Class Referencefinal

Exception thrown when a filesystem operation fails. More...

#include <magic_exception.hpp>

Inheritance diagram for Recognition::FilesystemError:
Collaboration diagram for Recognition::FilesystemError:

Public Member Functions

 FilesystemError (const std::string &path, const std::string &error_message)
 Construct FilesystemError with path and error description.
Public Member Functions inherited from Recognition::MagicException
 MagicException (const std::string &function, const std::string &error_message)
 Construct MagicException with function name and error message.

Detailed Description

Exception thrown when a filesystem operation fails.

This exception wraps errors from std::filesystem operations that fail due to OS-level issues (permissions, I/O errors, etc.).

Since
10.0.0

Constructor & Destructor Documentation

◆ FilesystemError()

Recognition::FilesystemError::FilesystemError ( const std::string & path,
const std::string & error_message )
inline

Construct FilesystemError with path and error description.

Parameters
[in]pathThe path related to the error.
[in]error_messageDescription of the filesystem error.
Since
10.0.0

The documentation for this class was generated from the following file: