src/lemon/error.h
changeset 1149 9058f09cac26
parent 1122 3ce7fc516cca
child 1151 b217fc69f913
equal deleted inserted replaced
1:a8865637a706 2:eaf5852add30
   124    *
   124    *
   125    * Logic errors represent problems in the internal logic of a program;
   125    * Logic errors represent problems in the internal logic of a program;
   126    * in theory, these are preventable, and even detectable before the
   126    * in theory, these are preventable, and even detectable before the
   127    * program runs (e.g., violations of class invariants).
   127    * program runs (e.g., violations of class invariants).
   128    *
   128    *
   129    * For a typical example \see UninitializedParameterError.
   129    * A typical example for this is \ref UninitializedParameter.
   130    */
   130    */
   131   class LogicError : public Exception {
   131   class LogicError : public Exception {
   132   public:
   132   public:
   133     virtual const char* exceptionName() const {
   133     virtual const char* exceptionName() const {
   134       return "lemon::LogicError";
   134       return "lemon::LogicError";
       
   135     }
       
   136   };
       
   137 
       
   138   /**
       
   139    * \brief \ref Exception for uninitialized parameters.
       
   140    *
       
   141    * This error represents problems in the initialization
       
   142    * of the parameters of the algorithms.
       
   143    */
       
   144   class UninitializedParameter : public LogicError {
       
   145   public:
       
   146     virtual const char* exceptionName() const {
       
   147       return "lemon::UninitializedParameter";
   135     }
   148     }
   136   };
   149   };
   137 
   150 
   138   
   151   
   139   /**
   152   /**