Nymph Game Engine
Chaiscript based Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
invalid_geometry_shader_exception.h
Go to the documentation of this file.
1 #ifndef INVALID_GEOMETRY_SHADER_EXCEPTION_H
2 #define INVALID_GEOMETRY_SHADER_EXCEPTION_H
3 #include <exception>
4 #include <sstream>
5 
6 namespace Exceptions {
7  class InvalidGeometryShaderException : public std::exception {
8  private:
9  unsigned int geometry_shader_binding;
10  public:
11  InvalidGeometryShaderException(const unsigned int geometry_shader_binding) {
12  this->geometry_shader_binding = geometry_shader_binding;
13  }
14 
15  virtual const char* what() const throw() {
16  std::stringstream s;
17  s << "Invalid geometry shader object with binding: " << this->geometry_shader_binding;
18  return s.str().c_str();
19  }
20  };
21 }
22 #endif
InvalidGeometryShaderException(const unsigned int geometry_shader_binding)
Definition: invalid_geometry_shader_exception.h:11
Definition: invalid_geometry_shader_exception.h:7
virtual const char * what() const
Definition: invalid_geometry_shader_exception.h:15