FastCDR
Version 2.3.0
FastCDR
BadOptionalAccessException.hpp
1
// Copyright 2023 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_BADOPTIONALACCESSEXCEPTION_H_
16
#define _FASTCDR_EXCEPTIONS_BADOPTIONALACCESSEXCEPTION_H_
17
18
#include "Exception.h"
19
20
namespace
eprosima
{
21
namespace
fastcdr {
22
namespace
exception {
27
class
Cdr_DllAPI
BadOptionalAccessException
:
public
Exception
28
{
29
public
:
30
36
BadOptionalAccessException
(
37
const
char
*
const
& message) noexcept;
38
44
BadOptionalAccessException
(
45
const
BadOptionalAccessException
& ex) noexcept;
46
52
BadOptionalAccessException
(
53
BadOptionalAccessException
&& ex) noexcept;
54
60
BadOptionalAccessException
& operator =(
61
const
BadOptionalAccessException
& ex) noexcept;
62
68
BadOptionalAccessException
& operator =(
69
BadOptionalAccessException
&& ex) noexcept;
70
72
virtual
~
BadOptionalAccessException
() noexcept;
73
75
void
raise
()
const
override
;
76
78
static
const
char
*
const
BAD_OPTIONAL_ACCESS_MESSAGE_DEFAULT
;
79
};
80
}
//namespace exception
81
}
//namespace fastcdr
82
}
//namespace eprosima
83
#endif // _FASTCDR_EXCEPTIONS_BADOPTIONALACCESSEXCEPTION_H_
eprosima::fastcdr::exception::Exception
This abstract class is used to create exceptions.
Definition:
Exception.h:28
eprosima::fastcdr::exception::BadOptionalAccessException::BAD_OPTIONAL_ACCESS_MESSAGE_DEFAULT
static const char *const BAD_OPTIONAL_ACCESS_MESSAGE_DEFAULT
Default message used in the library.
Definition:
BadOptionalAccessException.hpp:78
eprosima::fastcdr::exception::BadOptionalAccessException
This class is thrown as an exception when accessing the value of a null optional.
Definition:
BadOptionalAccessException.hpp:27
eprosima
Definition:
fixed_size_string.hpp:32
include
fastcdr
exceptions
BadOptionalAccessException.hpp
Generated on Thu Jul 31 2025 17:11:48 for