X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexcept.h;h=2d8f979e7f86182b5a0effae9a768e4d06f1b607;hb=b8b06a0ff96763ba7e188d9fcacbd8c0e3dcd515;hp=4ba6f717ef30d24eb1098db22767f60aa33f8cca;hpb=5318aa4fd553be4ce0bc428e73592b787842cdea;p=libs%2Fgl.git diff --git a/source/except.h b/source/except.h index 4ba6f717..2d8f979e 100644 --- a/source/except.h +++ b/source/except.h @@ -13,11 +13,11 @@ Distributed under the LGPL namespace Msp { namespace GL { -class InvalidOperation: public Exception +class IncompatibleData: public Exception { public: - InvalidOperation(const std::string &w_): Exception(w_) { } - ~InvalidOperation() throw() { } + IncompatibleData(const std::string &w_): Exception(w_) { } + ~IncompatibleData() throw() { } }; class UnsupportedExtension: public Exception @@ -27,6 +27,13 @@ public: ~UnsupportedExtension() throw() { } }; +class CompileError: public Exception +{ +public: + CompileError(const std::string &w_): Exception(w_) { } + ~CompileError() throw() { } +}; + } // namespace GL } // namespace Msp