A class for errors.
More...
#include <Logs.hpp>
|
| | Error (const std::string file="", const int line=0, const std::string func="") |
| | Constructor of the Error.
|
| |
|
| ~Error () |
| | Destructor of the Error.
|
| |
| template<typename T > |
| Error & | operator<< (const T &message) |
| | Print an error message.
|
| |
| Error & | operator<< (std::ostream &(*pf)(std::ostream &)) |
| | Print an error message.
|
| |
A class for errors.
This class is used to print error messages
◆ Error()
| Error |
( |
const std::string | file = "", |
|
|
const int | line = 0, |
|
|
const std::string | func = "" ) |
Constructor of the Error.
- Parameters
-
| file | The file that contains the error |
| line | The line that contains the error |
| func | The function that contains the error |
◆ operator<<() [1/2]
template<typename T >
| Error & operator<< |
( |
const T & | message | ) |
|
|
inline |
Print an error message.
- Parameters
-
| message | The message to print |
- Returns
- Error & The error object
◆ operator<<() [2/2]
| Error & operator<< |
( |
std::ostream &(* | pf )(std::ostream &) | ) |
|
Print an error message.
- Parameters
-
- Returns
- Error & The error object
The documentation for this class was generated from the following files: