equal
deleted
inserted
replaced
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 /** |