FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Memory::AllocException Class Reference

Memory allocation exception. More...

#include <memory_arbiter.hpp>

Inheritance diagram for FEAT::Memory::AllocException:
FEAT::Memory::MemoryException FEAT::Exception

Public Member Functions

 AllocException (std::size_t bytes, const String &loc)
 
const String message () const
 returns error message More...
 
virtual const char * what () const noexcept override
 return descriptive exception name More...
 

Private Attributes

const String _message
 descriptive error message More...
 

Detailed Description

Memory allocation exception.

An exception of this class is thrown when a memory allocation fails.

Definition at line 167 of file memory_arbiter.hpp.

Constructor & Destructor Documentation

◆ AllocException()

FEAT::Memory::AllocException::AllocException ( std::size_t  bytes,
const String &  loc 
)
inlineexplicit

Definition at line 171 of file memory_arbiter.hpp.

Member Function Documentation

◆ message()

const String FEAT::Exception::message ( ) const
inlineinherited

returns error message

Definition at line 73 of file exception.hpp.

References FEAT::Exception::_message.

◆ what()

virtual const char * FEAT::Exception::what ( ) const
inlineoverridevirtualnoexceptinherited

return descriptive exception name

Reimplemented in FEAT::Xml::Error.

Definition at line 79 of file exception.hpp.

References FEAT::Exception::_message.

Member Data Documentation

◆ _message

const String FEAT::Exception::_message
privateinherited

descriptive error message

Definition at line 30 of file exception.hpp.

Referenced by FEAT::Exception::message(), and FEAT::Exception::what().


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