Jetpack documentation 1.0.0
Loading...
Searching...
No Matches
Error Class Reference

A class for errors. More...

#include <Logs.hpp>

Public Member Functions

 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 >
Erroroperator<< (const T &message)
 Print an error message.
 
Erroroperator<< (std::ostream &(*pf)(std::ostream &))
 Print an error message.
 

Detailed Description

A class for errors.

This class is used to print error messages

Constructor & Destructor Documentation

◆ Error()

Error ( const std::string file = "",
const int line = 0,
const std::string func = "" )

Constructor of the Error.

Parameters
fileThe file that contains the error
lineThe line that contains the error
funcThe function that contains the error

Member Function Documentation

◆ operator<<() [1/2]

template<typename T >
Error & operator<< ( const T & message)
inline

Print an error message.

Parameters
messageThe message to print
Returns
Error & The error object

◆ operator<<() [2/2]

Error & operator<< ( std::ostream &(* pf )(std::ostream &))

Print an error message.

Parameters
pfThe message to print
Returns
Error & The error object

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