Added a exception class for memory called MemoryExceptions.