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

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

#include <magic_exception.hpp>

Inheritance diagram for Recognition::MagicSetParameterError:
Collaboration diagram for Recognition::MagicSetParameterError:

Public Member Functions

 MagicSetParameterError (const std::string &error_message, const std::string &parameter_name, std::size_t value)
 Construct MagicSetParameterError 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::SetParameter() fails.

This exception indicates that the specified parameter could not be set. This may occur when setting a parameter to an invalid value.

See also
Magic::SetParameter()
Magic::Parameters
Since
10.0.0

Constructor & Destructor Documentation

◆ MagicSetParameterError()

Recognition::MagicSetParameterError::MagicSetParameterError ( const std::string & error_message,
const std::string & parameter_name,
std::size_t value )
inline

Construct MagicSetParameterError with details.

Parameters
[in]error_messageDescription of why setting the parameter failed.
[in]parameter_nameName of the parameter that failed.
[in]valueThe value that was attempted to set.
Since
10.0.0

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