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

Exception thrown when Magic::LoadDatabaseFile() fails. More...

#include <magic_exception.hpp>

Inheritance diagram for Recognition::MagicLoadDatabaseFileError:
Collaboration diagram for Recognition::MagicLoadDatabaseFileError:

Public Member Functions

 MagicLoadDatabaseFileError (const std::string &error_message, const std::string &database_file_path)
 Construct MagicLoadDatabaseFileError with details.
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 Magic::LoadDatabaseFile() fails.

This exception indicates that the magic database file could not be loaded. Common causes include invalid or corrupted database files.

See also
Magic::LoadDatabaseFile()
Since
10.0.0

Constructor & Destructor Documentation

◆ MagicLoadDatabaseFileError()

Recognition::MagicLoadDatabaseFileError::MagicLoadDatabaseFileError ( const std::string & error_message,
const std::string & database_file_path )
inline

Construct MagicLoadDatabaseFileError with details.

Parameters
[in]error_messageDescription of why loading failed.
[in]database_file_pathPath to the database file that failed to load.
Since
10.0.0

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