zariduomega
20-08-2009 16:26:50
Forgive me if this is a stupid question, but what kind of object is typically passed into the OgreException class constructor? From looking at the class definition in _ogre_exceptions_.py it looks like an object that has the getFullDescription method (from looking at the __str__ method), but this class bears little similarity to the C++ OgreException class
The reason I ask is that I want to raise an OgreFileNotFoundException if a given file cannot be located, but I want to do it correctly so that try-except blocks can handle it just like other OgreExceptions.
Thanks in advance!
The reason I ask is that I want to raise an OgreFileNotFoundException if a given file cannot be located, but I want to do it correctly so that try-except blocks can handle it just like other OgreExceptions.
Thanks in advance!