Nymph Game Engine
Chaiscript based Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
invalid_file_format_exception.h
Go to the documentation of this file.
1
#ifndef INVALID_FILE_FORMAT_EXCEPTION_H
2
#define INVALID_FILE_FORMAT_EXCEPTION_H
3
4
#include <exception>
5
#include <string>
6
7
namespace
Exceptions {
8
class
InvalidFileFormatException
:
public
std::exception {
9
private
:
10
std::string filename;
11
public
:
12
InvalidFileFormatException
(
const
std::string& filename) {
13
this->filename = filename;
14
}
15
16
virtual
const
char
*
what
()
const
throw() {
17
return
(std::string(
"Invalid file format given at: "
) + this->filename).c_str();
18
}
19
};
20
}
21
22
#endif
Exceptions::InvalidFileFormatException::InvalidFileFormatException
InvalidFileFormatException(const std::string &filename)
Definition:
invalid_file_format_exception.h:12
Exceptions::InvalidFileFormatException::what
virtual const char * what() const
Definition:
invalid_file_format_exception.h:16
Exceptions::InvalidFileFormatException
Definition:
invalid_file_format_exception.h:8
src
exceptions
invalid_file_format_exception.h
Generated on Sun Jan 14 2018 21:47:00 for Nymph Game Engine by
1.8.6