src/rcrt/math/NotNormalizableException.h

Go to the documentation of this file.
00001 #ifndef NOTNORMALIZABLEEXCEPTION_H_
00002 #define NOTNORMALIZABLEEXCEPTION_H_
00003 #include <stdexcept>
00004 
00005 namespace rcrt
00006 {
00007 
00008 class NotNormalizableException: public std::logic_error
00009 {
00010 public: 
00011         NotNormalizableException() : std::logic_error("The homogeneous coordinate was not normalizable. (w == 0) ")
00012         {
00013         }
00014         
00015         virtual const char* what() const throw()
00016         {
00017                 return "The homogeneous coordinate was not normalizable. (w == 0) ";
00018         }
00019 };
00020 
00021 }
00022 
00023 #endif /*NOTNORMALIZABLEEXCEPTION_H_*/

Generated on Thu Jan 31 19:26:19 2008 for RenderingCompetitionRayTracer by  doxygen 1.5.3