Public Member Functions | Static Public Attributes | List of all members
eprosima::fastcdr::exception::NotEnoughMemoryException Class Reference

This class is thrown as an exception when the buffer's internal memory reachs its size limit. More...

#include <NotEnoughMemoryException.h>

Inheritance diagram for eprosima::fastcdr::exception::NotEnoughMemoryException:
Inheritance graph
[legend]

Public Member Functions

Cdr_DllAPI NotEnoughMemoryException (const char *const &message) noexcept
 Default constructor. More...
 
Cdr_DllAPI NotEnoughMemoryException (const NotEnoughMemoryException &ex) noexcept
 Default copy constructor. More...
 
Cdr_DllAPI NotEnoughMemoryExceptionoperator= (const NotEnoughMemoryException &ex) noexcept
 Assigment operation. More...
 
virtual Cdr_DllAPI void raise () const override
 This function throws the object as exception. More...
 
virtual Cdr_DllAPI ~NotEnoughMemoryException () noexcept
 Default constructor. More...
 
- Public Member Functions inherited from eprosima::fastcdr::exception::Exception
virtual Cdr_DllAPI const char * what () const noexcept override
 This function returns the error message. More...
 
virtual Cdr_DllAPI ~Exception () noexcept
 Default destructor. More...
 

Static Public Attributes

static Cdr_DllAPI const char *const NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT
 Default message used in the library. More...
 

Additional Inherited Members

- Protected Member Functions inherited from eprosima::fastcdr::exception::Exception
Cdr_DllAPI Exception (const char *const &message) noexcept
 Default constructor. More...
 
Cdr_DllAPI Exception (const Exception &ex) noexcept
 Default copy constructor. More...
 
Cdr_DllAPI Exceptionoperator= (const Exception &ex) noexcept
 Assigment operation. More...
 

Detailed Description

This class is thrown as an exception when the buffer's internal memory reachs its size limit.

Definition at line 27 of file NotEnoughMemoryException.h.

Constructor & Destructor Documentation

◆ NotEnoughMemoryException() [1/2]

NotEnoughMemoryException::NotEnoughMemoryException ( const char *const &  message)
noexcept

Default constructor.

Parameters
messageA error message. This message pointer is copied.

Definition at line 22 of file NotEnoughMemoryException.cpp.

◆ NotEnoughMemoryException() [2/2]

NotEnoughMemoryException::NotEnoughMemoryException ( const NotEnoughMemoryException ex)
noexcept

Default copy constructor.

Parameters
exNotEnoughMemoryException that will be copied.

Definition at line 28 of file NotEnoughMemoryException.cpp.

◆ ~NotEnoughMemoryException()

NotEnoughMemoryException::~NotEnoughMemoryException ( )
virtualnoexcept

Default constructor.

Definition at line 70 of file NotEnoughMemoryException.cpp.

Member Function Documentation

◆ operator=()

NotEnoughMemoryException & NotEnoughMemoryException::operator= ( const NotEnoughMemoryException ex)
noexcept

Assigment operation.

Parameters
exNotEnoughMemoryException that will be copied.

Definition at line 43 of file NotEnoughMemoryException.cpp.

◆ raise()

void NotEnoughMemoryException::raise ( ) const
overridevirtual

This function throws the object as exception.

Implements eprosima::fastcdr::exception::Exception.

Definition at line 74 of file NotEnoughMemoryException.cpp.

Member Data Documentation

◆ NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT

const char *const NotEnoughMemoryException::NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT
static
Initial value:
=
"Not enough memory in the buffer stream"

Default message used in the library.

Definition at line 82 of file NotEnoughMemoryException.h.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:12:56