| Fast CDR Version 2.3.5 Fast CDR

Loading...
Searching...
No Matches
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
52 NotEnoughMemoryException(
53 NotEnoughMemoryException&& ex) noexcept;
54
60 NotEnoughMemoryException& operator =(
61 const NotEnoughMemoryException& ex) noexcept;
62
68 NotEnoughMemoryException& operator =(
69 NotEnoughMemoryException&& ex) noexcept;
70
72 virtual ~NotEnoughMemoryException() noexcept;
73
75 void raise() const override;
76
78 static const char* const NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT;
79};
80} //namespace exception
81} //namespace fastcdr
82} //namespace eprosima
83#endif // _FASTCDR_EXCEPTIONS_NOTENOUGHMEMORYEXCEPTION_H_
eprosima::fastcdr::exception::Exception::Exception
Exception(const char *const &message) noexcept
Default constructor.
eprosima::fastcdr::exception::NotEnoughMemoryException::raise
void raise() const override
This function throws the object as exception.
eprosima::fastcdr::exception::NotEnoughMemoryException::NotEnoughMemoryException
NotEnoughMemoryException(NotEnoughMemoryException &&ex) noexcept
Default move constructor.
eprosima::fastcdr::exception::NotEnoughMemoryException::~NotEnoughMemoryException
virtual ~NotEnoughMemoryException() noexcept
Default destructor.
eprosima::fastcdr::exception::NotEnoughMemoryException::NotEnoughMemoryException
NotEnoughMemoryException(const NotEnoughMemoryException &ex) noexcept
Default copy constructor.
eprosima::fastcdr::exception::NotEnoughMemoryException::NotEnoughMemoryException
NotEnoughMemoryException(const char *const &message) noexcept
Default constructor.
eprosima::fastcdr::exception::NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT
static const char *const NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT
Default message used in the library.
Definition NotEnoughMemoryException.h:78
eprosima::fastcdr::exception
Definition BadOptionalAccessException.hpp:22
eprosima::fastcdr
Definition Cdr.h:50
eprosima
Definition Cdr.h:49