Public Member Functions | List of all members
rapidsmpf::bad_alloc Class Reference

Exception thrown when an RapidsMPF allocation fails. More...

#include <error.hpp>

Inheritance diagram for rapidsmpf::bad_alloc:
rapidsmpf::out_of_memory

Public Member Functions

 bad_alloc (const char *msg)
 Constructs a bad_alloc with the error message. More...
 
 bad_alloc (std::string const &msg)
 Constructs a bad_alloc with the error message. More...
 
const char * what () const noexcept override
 Returns the explanatory string. More...
 

Detailed Description

Exception thrown when an RapidsMPF allocation fails.

Definition at line 30 of file error.hpp.

Constructor & Destructor Documentation

◆ bad_alloc() [1/2]

rapidsmpf::bad_alloc::bad_alloc ( const char *  msg)
inline

Constructs a bad_alloc with the error message.

Parameters
msgMessage to be associated with the exception

Definition at line 37 of file error.hpp.

◆ bad_alloc() [2/2]

rapidsmpf::bad_alloc::bad_alloc ( std::string const &  msg)
inline

Constructs a bad_alloc with the error message.

Parameters
msgMessage to be associated with the exception

Definition at line 45 of file error.hpp.

Member Function Documentation

◆ what()

const char* rapidsmpf::bad_alloc::what ( ) const
inlineoverridenoexcept

Returns the explanatory string.

Returns
The explanatory string.

Definition at line 52 of file error.hpp.


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