X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexcept.h;h=74467e40c3d527087f93ef78da8927afd9d395dc;hb=97e1aa9b5d2bacd3f1dddf2d1889f2714e36b766;hp=4ba6f717ef30d24eb1098db22767f60aa33f8cca;hpb=5318aa4fd553be4ce0bc428e73592b787842cdea;p=libs%2Fgl.git diff --git a/source/except.h b/source/except.h index 4ba6f717..74467e40 100644 --- a/source/except.h +++ b/source/except.h @@ -1,10 +1,3 @@ -/* $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_ @@ -13,11 +6,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 +20,13 @@ public: ~UnsupportedExtension() throw() { } }; +class CompileError: public Exception +{ +public: + CompileError(const std::string &w_): Exception(w_) { } + ~CompileError() throw() { } +}; + } // namespace GL } // namespace Msp