Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Tools/Math/LA_Exception.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------------
00002 /**
00003  * @file LA_Exception.h
00004  * Contains class LinAlg::Exception
00005  *
00006  * @author <a href="mailto:stefanuhrig@gmx.net">Stefan Uhrig</a>
00007  */
00008 //------------------------------------------------------------------------------
00009 #ifndef LINALG_EXCEPTION_H_INCLUDED
00010 #define LINALG_EXCEPTION_H_INCLUDED
00011 //------------------------------------------------------------------------------
00012 namespace LA
00013 {
00014 //------------------------------------------------------------------------------
00015 /**
00016  * Represents an exception of the LinAlg package.
00017  */
00018 class Exception
00019 {
00020 public:
00021   /**
00022    * Enumeration of reasons for the exception.
00023    */
00024   enum Reason
00025   {
00026     None,
00027     SingularMatrix
00028   };
00029 
00030 public:
00031   /**
00032    * Constructor for exception.
00033    * @param reason Reason for exception.
00034    */
00035   Exception(Reason reason) : reason(reason) {}
00036   
00037 public:
00038   /// Reason for exception.
00039   Reason reason;
00040 };
00041 //------------------------------------------------------------------------------
00042 }
00043 //------------------------------------------------------------------------------
00044 #endif
00045 //------------------------------------------------------------------------------

Generated on Mon Mar 20 22:00:06 2006 for GT2005 by doxygen 1.3.6