Nymph Game Engine
Chaiscript based Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
invalid_uniform_name_exception.h
Go to the documentation of this file.
1 #ifndef INVALID_UNIFORM_NAME_EXCEPTION_H
2 #define INVALID_UNIFORM_NAME_EXCEPTION_H
3 #include <exception>
4 
5 namespace Exceptions {
6  class InvalidUniformNameException : public std::exception {
7  private:
8  std::string name;
9  public:
10  InvalidUniformNameException(const std::string name) {
11  this->name = name;
12  }
13 
14  virtual const char* what() const throw() {
15  return (std::string("Invalid uniform name: ") + this->name).c_str();
16  }
17  };
18 }
19 #endif
virtual const char * what() const
Definition: invalid_uniform_name_exception.h:14
InvalidUniformNameException(const std::string name)
Definition: invalid_uniform_name_exception.h:10
Definition: invalid_uniform_name_exception.h:6