gtsam  4.0.0
gtsam
InfeasibleInitialValues.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2 
3  * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4  * Atlanta, Georgia 30332-0415
5  * All Rights Reserved
6  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7 
8  * See LICENSE for the license information
9 
10  * -------------------------------------------------------------------------- */
11 
19 #pragma once
20 
21 namespace gtsam {
22 /* ************************************************************************* */
27  InfeasibleInitialValues> {
28 public:
30  }
31 
32  virtual ~InfeasibleInitialValues() throw () {
33  }
34 
35  virtual const char *what() const throw () {
36  if (description_.empty())
37  description_ =
38  "An infeasible initial value was provided for the solver.\n";
39  return description_.c_str();
40  }
41 
42 private:
43  mutable std::string description_;
44 };
45 }
Base exception type that uses tbb_exception if GTSAM is compiled with TBB.
Definition: ThreadsafeException.h:39
An exception indicating that the provided initial value is infeasible Also used to inzdicatethat the ...
Definition: InfeasibleInitialValues.h:26
Global functions in a separate testing namespace.
Definition: chartTesting.h:28