Changeset 390:53c5277ba294 in lemon-main
- Timestamp:
- 11/21/08 15:26:58 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/preflow.h
r389 r390 20 20 #define LEMON_PREFLOW_H 21 21 22 #include <lemon/error.h>23 22 #include <lemon/tolerance.h> 24 23 #include <lemon/elevator.h> … … 133 132 typedef typename Traits::Tolerance Tolerance; 134 133 135 /// \brief \ref Exception for uninitialized parameters.136 ///137 /// This error represents problems in the initialization138 /// of the parameters of the algorithms.139 class UninitializedParameter : public lemon::Exception {140 public:141 virtual const char* what() const throw() {142 return "lemon::Preflow::UninitializedParameter";143 }144 };145 146 134 private: 147 135 … … 209 197 typedef _FlowMap FlowMap; 210 198 static FlowMap *createFlowMap(const Digraph&) { 211 throw UninitializedParameter(); 199 LEMON_ASSERT(false, "FlowMap is not initialized"); 200 return 0; // ignore warnings 212 201 } 213 202 }; … … 229 218 typedef _Elevator Elevator; 230 219 static Elevator *createElevator(const Digraph&, int) { 231 throw UninitializedParameter(); 220 LEMON_ASSERT(false, "Elevator is not initialized"); 221 return 0; // ignore warnings 232 222 } 233 223 };
Note: See TracChangeset
for help on using the changeset viewer.