]> git.tdb.fi Git - libs/gl.git/blob - source/except.h
4ba6f717ef30d24eb1098db22767f60aa33f8cca
[libs/gl.git] / source / except.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_EXCEPT_H_
9 #define MSP_GL_EXCEPT_H_
10
11 #include <msp/core/except.h>
12
13 namespace Msp {
14 namespace GL {
15
16 class InvalidOperation: public Exception
17 {
18 public:
19         InvalidOperation(const std::string &w_): Exception(w_) { }
20         ~InvalidOperation() throw() { }
21 };
22
23 class UnsupportedExtension: public Exception
24 {
25 public:
26         UnsupportedExtension(const std::string &w_): Exception(w_+" is not supported") { }
27         ~UnsupportedExtension() throw() { }
28 };
29
30 } // namespace GL
31 } // namespace Msp
32
33 #endif