From b5222d0d978ea5f8e066960ba48176e70df05033 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Sat, 12 Oct 2013 17:09:39 +0000 Subject: [PATCH] Fixed message in IndeterminantLinearSystemException --- gtsam/linear/linearExceptions.cpp | 4 ++-- gtsam/linear/linearExceptions.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gtsam/linear/linearExceptions.cpp b/gtsam/linear/linearExceptions.cpp index 0b0152026..3f62ed6d8 100644 --- a/gtsam/linear/linearExceptions.cpp +++ b/gtsam/linear/linearExceptions.cpp @@ -27,8 +27,8 @@ namespace gtsam { { if(!description_) description_ = String( - "\nIndeterminant linear system detected while working near variable with\n" - "index " + boost::lexical_cast(j_) + " in ordering.\n" + "\nIndeterminant linear system detected while working near variable\n" + + boost::lexical_cast(j_) + ".\n" "\n\ Thrown when a linear system is ill-posed. The most common cause for this\n\ error is having underconstrained variables. Mathematically, the system is\n\ diff --git a/gtsam/linear/linearExceptions.h b/gtsam/linear/linearExceptions.h index 62f12cc2e..4afc4f67e 100644 --- a/gtsam/linear/linearExceptions.h +++ b/gtsam/linear/linearExceptions.h @@ -95,7 +95,7 @@ namespace gtsam { class GTSAM_EXPORT IndeterminantLinearSystemException : public ThreadsafeException { Index j_; public: - IndeterminantLinearSystemException(Index j) throw() : j_(j) {} + IndeterminantLinearSystemException(Index j) throw(); virtual ~IndeterminantLinearSystemException() throw() {} Index nearbyVariable() const { return j_; } virtual const char* what() const throw();