pjmsg_mcap_wrapper
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
eprosima::fastcdr::exception::NotEnoughMemoryException Class Reference

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.

#include <NotEnoughMemoryException.h>

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

Public Member Functions

Cdr_DllAPI NotEnoughMemoryException (const char *const &message) noexcept
 Default constructor.
 
Cdr_DllAPI NotEnoughMemoryException (const NotEnoughMemoryException &ex) noexcept
 Default copy constructor.
 
Cdr_DllAPI NotEnoughMemoryException (NotEnoughMemoryException &&ex) noexcept
 Default move constructor.
 
Cdr_DllAPI NotEnoughMemoryExceptionoperator= (const NotEnoughMemoryException &ex) noexcept
 Assigment operation.
 
Cdr_DllAPI NotEnoughMemoryExceptionoperator= (NotEnoughMemoryException &&ex) noexcept
 Assigment operation.
 
virtual Cdr_DllAPI ~NotEnoughMemoryException () noexcept
 Default destructor.
 
Cdr_DllAPI void raise () const override
 This function throws the object as exception.
 
virtual Cdr_DllAPI const char * what () const noexcept override
 This function returns the error message.
 
what (T... args)
 

Static Public Attributes

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

Private Attributes

const char * m_message
 

Constructor & Destructor Documentation

◆ NotEnoughMemoryException() [1/3]

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

Default constructor.

Parameters
messageAn error message. This message pointer is copied.

Definition at line 22 of file NotEnoughMemoryException.cpp.

◆ NotEnoughMemoryException() [2/3]

NotEnoughMemoryException::NotEnoughMemoryException ( const NotEnoughMemoryException ex)
noexcept

Default copy constructor.

Parameters
exNotEnoughMemoryException that will be copied.

Definition at line 28 of file NotEnoughMemoryException.cpp.

◆ NotEnoughMemoryException() [3/3]

NotEnoughMemoryException::NotEnoughMemoryException ( NotEnoughMemoryException &&  ex)
noexcept

Default move constructor.

Parameters
exNotEnoughMemoryException that will be moved.

Definition at line 34 of file NotEnoughMemoryException.cpp.

◆ ~NotEnoughMemoryException()

NotEnoughMemoryException::~NotEnoughMemoryException ( )
virtualnoexcept

Default destructor.

Definition at line 64 of file NotEnoughMemoryException.cpp.

Member Function Documentation

◆ operator=() [1/2]

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

Assigment operation.

Parameters
exNotEnoughMemoryException that will be copied.

Definition at line 40 of file NotEnoughMemoryException.cpp.

◆ operator=() [2/2]

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

Assigment operation.

Parameters
exNotEnoughMemoryException that will be moved.

Definition at line 52 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 68 of file NotEnoughMemoryException.cpp.

◆ what()

const char * Exception::what ( ) const
overridevirtualnoexceptinherited

This function returns the error message.

Returns
The error message.

Definition at line 55 of file Exception.cpp.

Member Data Documentation

◆ m_message

const char* eprosima::fastcdr::exception::Exception::m_message
privateinherited

Definition at line 90 of file Exception.h.

◆ 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 78 of file NotEnoughMemoryException.h.


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