Fast CDR
Version 1.1.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
#include <exception>
21
22
namespace
eprosima
{
23
namespace
fastcdr {
24
namespace
exception {
29
class
Cdr_DllAPI
Exception
:
public
std::exception
30
{
31
public
:
32
34
virtual
~Exception
() noexcept;
35
37
virtual
void
raise() const = 0;
38
44
virtual const
char
* what() const noexcept override;
45
46
protected:
47
53
Exception
(
54
const
char
* const& message) noexcept;
55
61
Exception
(
62
const
Exception
& ex) noexcept;
63
69
Exception
(
70
Exception
&& ex) noexcept;
71
77
Exception
& operator =(
78
const
Exception
& ex) noexcept;
79
85
Exception
& operator =(
86
Exception
&& ex) noexcept;
87
88
private:
89
90
const
char
* m_message;
91
};
92
}
//namespace exception
93
}
//namespace fastcdr
94
}
//namespace eprosima
95
96
#endif
// _FASTCDR_EXCEPTIONS_EXCEPTION_H_
eprosima::fastcdr::exception::Exception
This abstract class is used to create exceptions.
Definition
Exception.h:30
eprosima::fastcdr::exception::Exception::~Exception
virtual ~Exception() noexcept
Default destructor.
eprosima
Definition
Cdr.h:35
include
fastcdr
exceptions
Exception.h
Generated on Sun Mar 31 2024 00:57:18 for