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

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

#include <magic_exception.hpp>

Inheritance diagram for Recognition::MagicSetFlagsError:
Collaboration diagram for Recognition::MagicSetFlagsError:

Public Member Functions

 MagicSetFlagsError (const std::string &error_message, const std::string &flag_names)
 Construct MagicSetFlagsError 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::SetFlags() fails.

This exception indicates that the specified flags could not be set. This typically occurs with invalid flag combinations.

See also
Magic::SetFlags()
Magic::Flags
Since
10.0.0

Constructor & Destructor Documentation

◆ MagicSetFlagsError()

Recognition::MagicSetFlagsError::MagicSetFlagsError ( const std::string & error_message,
const std::string & flag_names )
inline

Construct MagicSetFlagsError with details.

Parameters
[in]error_messageDescription of why setting flags failed.
[in]flag_namesString representation of the flags that failed.
Since
10.0.0

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