MADNESS 0.10.1
Public Member Functions | List of all members
madness::ThreadBindingException Class Reference

Thrown by check_thread_binding() when the CPU binding cannot support the thread pool. More...

#include <thread_binding.h>

Inheritance diagram for madness::ThreadBindingException:
Inheritance graph
[legend]
Collaboration diagram for madness::ThreadBindingException:
Collaboration graph
[legend]

Public Member Functions

 ThreadBindingException (std::string text, const int line, const char *function, const char *file)
 
- Public Member Functions inherited from madness::MadnessException
 MadnessException (const char *m, const char *a, int v, int l, const char *fn, const char *f)
 Constructor that processes the requisite information.
 
virtual const charwhat () const throw ()
 Returns the error message, as specified by std::exception.
 

Additional Inherited Members

- Public Attributes inherited from madness::MadnessException
const charassertion
 String describing the assertion.
 
const charfilename
 File where the exception occurred.
 
const charfunction
 Function where the exception occurred.
 
const int line
 Line number where the exception occurred.
 
const charmsg
 The error message.
 
const int value
 Value associated with the exception.
 
- Private Member Functions inherited from madness::detail::ThreadBindingMessage
 ThreadBindingMessage (std::string t)
 
- Private Attributes inherited from madness::detail::ThreadBindingMessage
std::shared_ptr< const std::string > text
 

Detailed Description

Thrown by check_thread_binding() when the CPU binding cannot support the thread pool.

Derives from MadnessException, so existing catch(const MadnessException&) handlers pick it up; what() returns the full multi-line diagnostic.

Note
The private base must stay first in the base list – bases are initialized in declaration order, and MadnessException's constructor needs the text to exist already.

Constructor & Destructor Documentation

◆ ThreadBindingException()

madness::ThreadBindingException::ThreadBindingException ( std::string  text,
const int  line,
const char function,
const char file 
)
inline

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