Main Page
Namespaces
Namespace List
Namespace Members
All
Typedefs
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
g
i
m
n
o
p
r
s
t
u
w
~
Functions
_
a
b
c
d
e
g
m
n
o
p
r
s
t
u
w
~
Variables
Typedefs
Related Functions
Files
File List
File Members
All
Functions
include
point_cloud_transport
exception.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-3-Clause
2
// SPDX-FileCopyrightText: Czech Technical University in Prague .. 2019, paplhjak .. 2009, Willow Garage, Inc.
3
4
/*
5
*
6
* BSD 3-Clause License
7
*
8
* Copyright (c) Czech Technical University in Prague
9
* Copyright (c) 2019, paplhjak
10
* Copyright (c) 2009, Willow Garage, Inc.
11
*
12
* All rights reserved.
13
*
14
* Redistribution and use in source and binary forms, with or without
15
* modification, are permitted provided that the following conditions are met:
16
*
17
* 1. Redistributions of source code must retain the above copyright notice, this
18
* list of conditions and the following disclaimer.
19
*
20
* 2. Redistributions in binary form must reproduce the above copyright notice,
21
* this list of conditions and the following disclaimer in the documentation
22
* and/or other materials provided with the distribution.
23
*
24
* 3. Neither the name of the copyright holder nor the names of its
25
* contributors may be used to endorse or promote products derived from
26
* this software without specific prior written permission.
27
*
28
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
31
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
32
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
34
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38
*
39
*/
40
41
#pragma once
42
43
#include <stdexcept>
44
#include <string>
45
46
namespace
point_cloud_transport
47
{
48
50
class
Exception
:
public
std::runtime_error
51
{
52
public
:
53
explicit
Exception
(
const
std::string& message) :
std
::runtime_error(message)
54
{
55
}
56
};
57
59
class
TransportLoadException
:
public
Exception
60
{
61
public
:
62
TransportLoadException
(
const
std::string& transport,
const
std::string& message)
63
:
Exception
(
"Unable to load plugin for transport '"
+ transport +
"', error string:\n"
+ message),
64
transport_
(transport.c_str())
65
{
66
}
67
68
std::string
getTransport
()
const
69
{
70
return
transport_
;
71
}
72
73
protected
:
74
const
char
*
transport_
;
75
};
76
77
}
point_cloud_transport::TransportLoadException::getTransport
std::string getTransport() const
Definition:
exception.h:68
point_cloud_transport::TransportLoadException::transport_
const char * transport_
Definition:
exception.h:74
point_cloud_transport::Exception
A base class for all point_cloud_transport exceptions inheriting from std::runtime_error.
Definition:
exception.h:50
point_cloud_transport
Definition:
exception.h:46
point_cloud_transport::Exception::Exception
Exception(const std::string &message)
Definition:
exception.h:53
std
point_cloud_transport::TransportLoadException::TransportLoadException
TransportLoadException(const std::string &transport, const std::string &message)
Definition:
exception.h:62
point_cloud_transport::TransportLoadException
An exception class thrown when point_cloud_transport is unable to load a requested transport.
Definition:
exception.h:59
point_cloud_transport
Author(s): Jakub Paplham
autogenerated on Sat Jun 17 2023 02:48:44