NRE_GlewException.hpp
Go to the documentation of this file.
1 
10  #pragma once
11 
12  #include "NRE_SystemException.hpp"
13 
18  namespace NRE {
23  namespace Exception {
24 
29  class GlewException : public SystemException {
30  public:
35  GlewException(Utility::String const& log) throw() : SystemException(("GLEW Exception : " + log).getCData()) {
36  }
37 
44  friend std::ostream& operator <<(std::ostream& stream, GlewException const& o) {
45  return stream << o.toString();
46  }
47  };
48  }
49  }
friend std::ostream & operator<<(std::ostream &stream, GlewException const &o)
Definition: NRE_GlewException.hpp:44
SystemException(Utility::String const &log)
Definition: NRE_SystemException.hpp:35
Utility&#39;s API.
Declaration of System&#39;s API&#39;s Object : SystemException.
An exception thrown by system operation.
Definition: NRE_SystemException.hpp:29
The NearlyRealEngine&#39;s global namespace.
An exception thrown by glew operation.
Definition: NRE_GlewException.hpp:29
GlewException(Utility::String const &log)
Definition: NRE_GlewException.hpp:35