Page MenuHomec4science

FileParserException.h
No OneTemporary

File Metadata

Created
Wed, Jul 9, 07:17

FileParserException.h

/**
* @file FileParserException.h
* @author Sergio Hernandez
* This file is part of the Conjugate Gradient Project
*
* Specifies an exception> Configutation file is not well parsed.
*
*/
#ifndef PROJECT_FILEPARSEREXCEPTION_H
#define PROJECT_FILEPARSEREXCEPTION_H
#include <string>
#include <stdexcept>
class FileParserException : public std::runtime_error{
public:
FileParserException() : std::runtime_error("FILE PARSER ERROR: The parsing of the file failed. \n Please verify the file is well formatted.") { }
virtual const char* what() const throw()
{
return "FILE PARSER ERROR: The parsing of the file failed. \n Please verify the file is well formatted.";
}
};
#endif //PROJECT_FILEPARSEREXCEPTION_H

Event Timeline