mirror of https://github.com/libAthena/athena.git
20 lines
492 B
C++
20 lines
492 B
C++
|
#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
|