9.3 Exception::Memory

The Exception::Memory class is the master class for all memory related exceptions in LYRIC. It indicates memory allocation failures, range and memory move overflows. This class derives from the Exception class.


  #include <lyric/Exceptions.hpp>
  class Exception::Memory : public Exception
    Exception::Memory (const void* who);
    Exception::Memory (const Exception::Memory& except);


Exception::Memory (const void* who)
Constructs this memory exception with the given object memory address who. The given who is usually this.

Exception::Memory (const Exception::Memory& except)
Constructs this memory exception from the given exception. All properties and data stored in except are copied into this.