Page MenuHomec4science

Error.hpp
No OneTemporary

File Metadata

Created
Sun, Feb 23, 06:40

Error.hpp

//
// Created by Pauline Ollitrault on 12.12.16.
//
#ifndef NUMINT_ERROR_HPP
#define NUMINT_ERROR_HPP
#include <string>
#include <exception>
using namespace std;
class Error: public exception
{
/**
* @class Error
* @brief Methods for throwing errors through the program.
*/
public:
/** Constructor */
Error(std::string const phrase) throw();
/** Method */
const char* what() const throw();
/** Destructor */
~Error() throw();
private:
string m_phrase; /** String containing the error description */
};
#endif //NUMINT_ERROR_HPP

Event Timeline