Ocean
Loading...
Searching...
No Matches
Ocean::OutOfMemoryException Class Reference

Definition of a base exception if an out of memory problem occurs. More...

#include <Exception.h>

Inheritance diagram for Ocean::OutOfMemoryException:

Public Member Functions

 OutOfMemoryException ()
 Creates a new exception if not enough memory is available without any message.
 
 OutOfMemoryException (const char *message)
 Creates a new exception if not enough memory is available with a message.
 
 OutOfMemoryException (const std::string &message)
 Creates a new exception if not enough memory is available with a message.
 
- Public Member Functions inherited from Ocean::OceanException
 OceanException ()=default
 Creates a new OceanException object without any message.
 
 OceanException (OceanException &&exception) noexcept
 Move constructor.
 
 OceanException (const OceanException &exception) noexcept
 Copy constructor.
 
 OceanException (const char *message)
 Creates a new OceanException object with a message.
 
 OceanException (const std::string &message)
 Creates a new OceanException object with a message.
 
 ~OceanException () override
 Destructs an exception object.
 
const char * what () const noexcept override
 Returns the exception message.
 
OceanExceptionoperator= (OceanException &&exception) noexcept
 Move operator.
 
OceanExceptionoperator= (const OceanException &exception) noexcept
 Copy operator.
 

Detailed Description

Definition of a base exception if an out of memory problem occurs.

Constructor & Destructor Documentation

◆ OutOfMemoryException() [1/3]

Ocean::OutOfMemoryException::OutOfMemoryException ( )

Creates a new exception if not enough memory is available without any message.

◆ OutOfMemoryException() [2/3]

Ocean::OutOfMemoryException::OutOfMemoryException ( const char *  message)
explicit

Creates a new exception if not enough memory is available with a message.

Parameters
messageException message

◆ OutOfMemoryException() [3/3]

Ocean::OutOfMemoryException::OutOfMemoryException ( const std::string &  message)
explicit

Creates a new exception if not enough memory is available with a message.

Parameters
messageException message

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