Fast CDR  Version 1.0.24
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>

Inherits Exception.

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 ~NotEnoughMemoryException () noexcept
 Default constructor. More...
 
virtual Cdr_DllAPI void raise () const override
 This function throws the object as exception. More...
 
- Public Member Functions inherited from Exception
virtual Cdr_DllAPI ~Exception () noexcept
 Default destructor. More...
 
virtual Cdr_DllAPI const char * what () const noexcept override
 This function returns the error message. 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 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.

Constructor & Destructor Documentation

◆ NotEnoughMemoryException() [1/2]

Cdr_DllAPI NotEnoughMemoryException ( const char *const &  message)
noexcept

Default constructor.

Parameters
messageA error message. This message pointer is copied.

◆ NotEnoughMemoryException() [2/2]

Cdr_DllAPI NotEnoughMemoryException ( const NotEnoughMemoryException ex)
noexcept

Default copy constructor.

Parameters
exNotEnoughMemoryException that will be copied.

◆ ~NotEnoughMemoryException()

virtual Cdr_DllAPI ~NotEnoughMemoryException ( )
virtualnoexcept

Default constructor.

Member Function Documentation

◆ operator=()

Cdr_DllAPI NotEnoughMemoryException& operator= ( const NotEnoughMemoryException ex)
noexcept

Assigment operation.

Parameters
exNotEnoughMemoryException that will be copied.

◆ raise()

virtual Cdr_DllAPI void raise ( ) const
overridevirtual

This function throws the object as exception.

Implements Exception.

Member Data Documentation

◆ NOT_ENOUGH_MEMORY_MESSAGE_DEFAULT

Cdr_DllAPI 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: