Libmagicxx v5.1.1
A C++ wrapper library over the Magic Number Recognition Library.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
recognition::magic_exception Class Reference

The base class for all exceptions thrown by the magic class. More...

#include <magic_exception.hpp>

Inheritance diagram for recognition::magic_exception:
Inheritance graph
[legend]
Collaboration diagram for recognition::magic_exception:
Collaboration graph
[legend]

Public Member Functions

 magic_exception (const std::string &error)
 Construct magic_exception with an error message.
 
 magic_exception (const std::string &function, const std::string &error)
 Construct magic_exception with an error message and the name of the funtion where the error occurred.
 

Detailed Description

The base class for all exceptions thrown by the magic class.

Constructor & Destructor Documentation

◆ magic_exception() [1/2]

recognition::magic_exception::magic_exception ( const std::string & error)
inlineexplicit

Construct magic_exception with an error message.

Parameters
[in]errorThe description of the error.

◆ magic_exception() [2/2]

recognition::magic_exception::magic_exception ( const std::string & function,
const std::string & error )
inline

Construct magic_exception with an error message and the name of the funtion where the error occurred.

Parameters
[in]functionThe name of the funtion.
[in]errorThe description of the error.

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