QPSParserException.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 
23 class QPSParserException: public ThreadsafeException<QPSParserException> {
24 public:
26  }
27 
28  ~QPSParserException() noexcept override {
29  }
30 
31  const char *what() const noexcept override {
32  if (description_.empty())
33  description_ = "There is a problem parsing the QPS file.\n";
34  return description_.c_str();
35  }
36 
37 private:
38  mutable std::string description_;
39 };
40 
41 }
42 
gtsam::QPSParserException::what
const char * what() const noexcept override
Definition: QPSParserException.h:31
gtsam::ThreadsafeException
Base exception type that uses tbb_allocator if GTSAM is compiled with TBB.
Definition: ThreadsafeException.h:40
gtsam::QPSParserException::description_
std::string description_
Definition: QPSParserException.h:38
gtsam::QPSParserException::QPSParserException
QPSParserException()
Definition: QPSParserException.h:25
gtsam
traits
Definition: chartTesting.h:28
gtsam::QPSParserException::~QPSParserException
~QPSParserException() noexcept override
Definition: QPSParserException.h:28
gtsam::QPSParserException
Definition: QPSParserException.h:23


gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:02:25