Fast CDR  Version 1.0.23
Fast CDR
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 NotEnoughMemoryException:

Public Member Functions

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

Static Public Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from Exception
 Exception (const char *const &message) noexcept
 Default constructor. More...
 
 Exception (const Exception &ex) noexcept
 Default copy constructor. More...
 
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.

Constructor & Destructor Documentation

◆ NotEnoughMemoryException() [1/2]

NotEnoughMemoryException ( const char *const &  message)
noexcept

Default constructor.

Parameters
messageA error message. This message pointer is copied.

◆ NotEnoughMemoryException() [2/2]

Default copy constructor.

Parameters
exNotEnoughMemoryException that will be copied.

◆ ~NotEnoughMemoryException()

virtual ~NotEnoughMemoryException ( )
virtualnoexcept

Default constructor.

Member Function Documentation

◆ operator=()

NotEnoughMemoryException& operator= ( const NotEnoughMemoryException ex)
noexcept

Assigment operation.

Parameters
exNotEnoughMemoryException that will be copied.

◆ raise()

virtual void raise ( ) const
overridevirtual

This function throws the object as exception.

Implements Exception.

Member Data Documentation

◆ NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT

const char* const NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT
static

Default message used in the library.


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