X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexcept.h;fp=source%2Fexcept.h;h=4ba6f717ef30d24eb1098db22767f60aa33f8cca;hb=5318aa4fd553be4ce0bc428e73592b787842cdea;hp=0000000000000000000000000000000000000000;hpb=4c89817d6e060323ec1ddd275f3265cea688c650;p=libs%2Fgl.git diff --git a/source/except.h b/source/except.h new file mode 100644 index 00000000..4ba6f717 --- /dev/null +++ b/source/except.h @@ -0,0 +1,33 @@ +/* $Id$ + +This file is part of libmspgl +Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + +#ifndef MSP_GL_EXCEPT_H_ +#define MSP_GL_EXCEPT_H_ + +#include + +namespace Msp { +namespace GL { + +class InvalidOperation: public Exception +{ +public: + InvalidOperation(const std::string &w_): Exception(w_) { } + ~InvalidOperation() throw() { } +}; + +class UnsupportedExtension: public Exception +{ +public: + UnsupportedExtension(const std::string &w_): Exception(w_+" is not supported") { } + ~UnsupportedExtension() throw() { } +}; + +} // namespace GL +} // namespace Msp + +#endif