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

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

#include <error.hpp>

Inheritance diagram for rmm::bad_alloc:
Inheritance graph
[legend]
Collaboration diagram for rmm::bad_alloc:
Collaboration graph
[legend]

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
 The explanatory string. More...
 

Detailed Description

Exception thrown when an RMM allocation fails.

Constructor & Destructor Documentation

◆ bad_alloc() [1/2]

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

Constructs a bad_alloc with the error message.

Parameters
msgMessage to be associated with the exception

◆ bad_alloc() [2/2]

rmm::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

Member Function Documentation

◆ what()

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

The explanatory string.

Returns
The explanatory string

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