00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef CAELUM__CAELUM_EXCEPTIONS_H
00022 #define CAELUM__CAELUM_EXCEPTIONS_H
00023
00024 #include "CaelumPrerequisites.h"
00025
00026 namespace Caelum
00027 {
00032 class CAELUM_EXPORT UnsupportedException : public Ogre::Exception
00033 {
00034 public:
00036 UnsupportedException
00037 (
00038 int number,
00039 const Ogre::String &description,
00040 const Ogre::String &source,
00041 const char *file,
00042 long line
00043 ):
00044 Ogre::Exception (number, description, source, "UnsupportedException", file, line)
00045 {
00046 }
00047 };
00048
00049 #define CAELUM_THROW_UNSUPPORTED_EXCEPTION(desc, src) \
00050 throw UnsupportedException(-1, (desc), (src), __FILE__, __LINE__);
00051
00052 }
00053
00054 #endif // CAELUM__CAELUM_EXCEPTIONS_H