Fast CDR
Version 1.0.17
Fast CDR
NotEnoughMemoryException.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_NOTENOUGHMEMORYEXCEPTION_H_
16
#define _FASTCDR_EXCEPTIONS_NOTENOUGHMEMORYEXCEPTION_H_
17
18
#include "Exception.h"
19
20
namespace
eprosima
{
21
namespace
fastcdr {
22
namespace
exception {
27
class
Cdr_DllAPI
NotEnoughMemoryException
:
public
Exception
28
{
29
public
:
30
36
NotEnoughMemoryException
(
37
const
char
*
const
& message) noexcept;
38
44
NotEnoughMemoryException
(
45
const
NotEnoughMemoryException
& ex) noexcept;
46
47
#if HAVE_CXX0X
48
53
NotEnoughMemoryException
(
54
NotEnoughMemoryException
&& ex) noexcept;
55
#endif // if HAVE_CXX0X
56
62
NotEnoughMemoryException
& operator =(
63
const
NotEnoughMemoryException
& ex) noexcept;
64
65
#if HAVE_CXX0X
66
71
NotEnoughMemoryException
& operator =(
72
NotEnoughMemoryException
&& ex) noexcept;
73
#endif // if HAVE_CXX0X
74
76
virtual
~NotEnoughMemoryException
() noexcept;
77
79
virtual
void
raise() const override;
80
82
static const
char
* const NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT;
83
};
84
}
//namespace exception
85
}
//namespace fastcdr
86
}
//namespace eprosima
87
#endif // _FASTCDR_EXCEPTIONS_NOTENOUGHMEMORYEXCEPTION_H_
eprosima::fastcdr::exception::Exception
This abstract class is used to create exceptions.
Definition:
Exception.h:30
eprosima::fastcdr::exception::NotEnoughMemoryException::NotEnoughMemoryException
NotEnoughMemoryException(const char *const &message) noexcept
Default constructor.
eprosima::fastcdr::exception::NotEnoughMemoryException::NotEnoughMemoryException
NotEnoughMemoryException(const NotEnoughMemoryException &ex) noexcept
Default copy constructor.
eprosima::fastcdr::exception::NotEnoughMemoryException
This class is thrown as an exception when the buffer's internal memory reachs its size limit.
Definition:
NotEnoughMemoryException.h:28
eprosima::fastcdr::exception::NotEnoughMemoryException::~NotEnoughMemoryException
virtual ~NotEnoughMemoryException() noexcept
Default constructor.
eprosima
Definition:
Cdr.h:37
include
fastcdr
exceptions
NotEnoughMemoryException.h
Generated on Mon Dec 7 2020 16:18:59 for