]> git.tdb.fi Git - libs/gl.git/blob - source/except.h
Drop Id tags and copyright notices from files
[libs/gl.git] / source / except.h
1 #ifndef MSP_GL_EXCEPT_H_
2 #define MSP_GL_EXCEPT_H_
3
4 #include <msp/core/except.h>
5
6 namespace Msp {
7 namespace GL {
8
9 class IncompatibleData: public Exception
10 {
11 public:
12         IncompatibleData(const std::string &w_): Exception(w_) { }
13         ~IncompatibleData() throw() { }
14 };
15
16 class UnsupportedExtension: public Exception
17 {
18 public:
19         UnsupportedExtension(const std::string &w_): Exception(w_+" is not supported") { }
20         ~UnsupportedExtension() throw() { }
21 };
22
23 class CompileError: public Exception
24 {
25 public:
26         CompileError(const std::string &w_): Exception(w_) { }
27         ~CompileError() throw() { }
28 };
29
30 } // namespace GL
31 } // namespace Msp
32
33 #endif