athena/include/FileNotFoundException.hpp

20 lines
492 B
C++
Raw Normal View History

2013-01-26 20:19:24 +00:00
#ifndef __FILENOTFOUNDEXCEPTION_HPP__
#define __FILENOTFOUNDEXCEPTION_HPP__
#include "Exception.hpp"
class FileNotFoundException : public Exception
{
public:
FileNotFoundException(const std::string& filename) :
Exception("FileNotFoundException:\nCouldn't not find \"" + filename + "\", please check that it exists."),
m_filename(filename)
{}
std::string filename() const { return m_filename; }
private:
std::string m_filename;
};
#endif