Main MRPT website
>
C++ reference for MRPT 1.4.0
mrpt
utils
exceptions.h
Go to the documentation of this file.
1
/* +---------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| http://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2016, Individual contributors, see AUTHORS file |
6
| See: http://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See details in http://www.mrpt.org/License |
8
+---------------------------------------------------------------------------+ */
9
#ifndef exceptions_H
10
#define exceptions_H
11
12
#include <stdexcept>
13
#include <string>
14
15
namespace
mrpt
16
{
17
namespace
utils
18
{
19
/** \addtogroup mrpt_exceptions Exception base classes (in #include <mrpt/utils/exceptions.h>)
20
* \ingroup mrpt_base_grp
21
* @{ */
22
23
/** The base for MRPT-especific exceptions \ingroup mrpt_base_grp */
24
class
CMRPTException
:
public
std::logic_error
25
{
26
public
:
27
CMRPTException
(
const
std::string &s) : std::logic_error(s.c_str()) { }
28
};
29
30
/** Used in mrpt::utils::CImage */
31
class
CExceptionExternalImageNotFound
:
public
mrpt::utils::CMRPTException
32
{
33
public
:
34
CExceptionExternalImageNotFound
(
const
std::string &s) :
CMRPTException
(s) { }
35
};
36
37
/** Used in mrpt::utils::CStream */
38
class
CExceptionEOF
:
public
mrpt::utils::CMRPTException
39
{
40
public
:
41
CExceptionEOF
(
const
std::string &s) :
CMRPTException
(s) { }
42
};
43
44
/** @} */
45
}
// End of namespace
46
}
// End of namespace
47
#endif
mrpt::utils::CExceptionExternalImageNotFound
Used in mrpt::utils::CImage.
Definition:
exceptions.h:31
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition:
CParticleFilter.h:16
mrpt::utils::CExceptionEOF::CExceptionEOF
CExceptionEOF(const std::string &s)
Definition:
exceptions.h:41
mrpt::utils::CMRPTException::CMRPTException
CMRPTException(const std::string &s)
Definition:
exceptions.h:27
mrpt::utils::CExceptionEOF
Used in mrpt::utils::CStream.
Definition:
exceptions.h:38
mrpt::utils::CExceptionExternalImageNotFound::CExceptionExternalImageNotFound
CExceptionExternalImageNotFound(const std::string &s)
Definition:
exceptions.h:34
mrpt::utils::CMRPTException
The base for MRPT-especific exceptions.
Definition:
exceptions.h:24
Page generated by
Doxygen 1.8.16
for MRPT 1.4.0 SVN: at Mon Oct 14 23:11:08 UTC 2019