•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Search Results
mpqc::MemAllocFailed Class Reference
Collaboration diagram for mpqc::MemAllocFailed:

Documentation
This is thrown when a memory allocation fails.
Public Member Functions | |
MemAllocFailed (const char *description=0, const char *file=0, int line=0, size_t nbyte=0, const char *exception_type="MemAllocFailed") noexcept | |
MemAllocFailed (const MemAllocFailed &)=default | |
MemAllocFailed (MemAllocFailed &&)=default | |
virtual ~MemAllocFailed ()=default | |
size_t nbyte () const noexcept | |
Returns the number of bytes used in the failed allocation attempt. More... | |
![]() | |
SystemException (const char *description=0, const char *file=0, int line=0, const char *exception_type="SystemException") noexcept | |
SystemException (const SystemException &)=default | |
SystemException (SystemException &&)=default | |
virtual ~SystemException ()=default | |
![]() | |
Exception (const char *description=0, const char *file=0, int line=0, const char *exception_type="Exception") noexcept | |
Exception (const Exception &) noexcept | |
Exception (Exception &&)=default | |
virtual ~Exception () noexcept | |
const char * what () const noexcept | |
overload of Exception::what() More... | |
const char * exception_type () const noexcept | |
Returns the classname of the exception. May return null. More... | |
std::ostream & elaborate () | |
![]() | |
Exception (const char *description=0, const char *file=0, int line=0) noexcept | |
Exception (const Exception &)=default | |
Exception (Exception &&)=default | |
const char * description () const noexcept | |
const char * file () const noexcept | |
int line () const noexcept | |
Constructor & Destructor Documentation
◆ MemAllocFailed() [1/3]
|
noexcept |
Create a MemAllocFailed exception.
- Parameters
-
description a description of the problem. file the file name where the problem occured. line the line number where the exception occured. nbyte the size of the attempted allocation. exception_type the classname of the Exception specialization. The default is "MemAllocFailed".
It is suggested that the special macros FILE and LINE be given as the file
and line
arguments, respectively.
◆ MemAllocFailed() [2/3]
|
default |
◆ MemAllocFailed() [3/3]
|
default |
◆ ~MemAllocFailed()
|
virtualdefault |
Member Function Documentation
◆ nbyte()
|
inlinenoexcept |
Returns the number of bytes used in the failed allocation attempt.
The documentation for this class was generated from the following files:
- mpqc/util/core/exception.h
- mpqc/util/core/exception.cpp