Fast CDR
Version 2.3.0
Fast CDR
Loading...
Searching...
No Matches
Exception.h
1
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef _FASTCDR_EXCEPTIONS_EXCEPTION_H_
16
#define _FASTCDR_EXCEPTIONS_EXCEPTION_H_
17
18
#include "../fastcdr_dll.h"
19
#include <string>
20
21
namespace
eprosima
{
22
namespace
fastcdr {
23
namespace
exception {
28
class
Cdr_DllAPI
Exception
29
{
30
public
:
31
33
virtual
~Exception
() noexcept;
34
36
virtual
void
raise() const = 0;
37
43
virtual const
char
* what() const noexcept;
44
45
protected:
46
52
Exception
(
53
const
char
* const& message) noexcept;
54
60
Exception
(
61
const
Exception
& ex) noexcept;
62
68
Exception
(
69
Exception
&& ex) noexcept;
70
76
Exception
& operator =(
77
const
Exception
& ex) noexcept;
78
84
Exception
& operator =(
85
Exception
&& ex) noexcept;
86
87
private:
88
89
const
char
* m_message;
90
};
91
}
//namespace exception
92
}
//namespace fastcdr
93
}
//namespace eprosima
94
95
#endif
// _FASTCDR_EXCEPTIONS_EXCEPTION_H_
eprosima::fastcdr::exception::Exception
This abstract class is used to create exceptions.
Definition
Exception.h:29
eprosima::fastcdr::exception::Exception::~Exception
virtual ~Exception() noexcept
Default destructor.
eprosima
Definition
Cdr.h:49
include
fastcdr
exceptions
Exception.h
Generated on Thu Jul 31 2025 16:59:42 for