19 #include <rmm/detail/export.hpp>
24 namespace RMM_NAMESPACE {
36 using std::logic_error::logic_error;
46 using std::runtime_error::runtime_error;
74 [[nodiscard]]
const char*
what() const noexcept
override {
return _what.c_str(); }
111 using std::out_of_range::out_of_range;
RMM 分配失败时抛出的异常。
定义: error.hpp:55
const char * what() const noexcept override
解释性字符串。
定义: error.hpp:74
bad_alloc(std::string const &msg)
构造一个带错误消息的 bad_alloc 对象。
定义: error.hpp:69
bad_alloc(const char *msg)
构造一个带错误消息的 bad_alloc 对象。
定义: error.hpp:62
RMM 内存不足时抛出的异常。
定义: error.hpp:87
out_of_memory(std::string const &msg)
构造一个带错误消息的 out_of_memory 对象。
定义: error.hpp:101
out_of_memory(const char *msg)
构造一个带错误消息的 out_of_memory 对象。
定义: error.hpp:94
尝试访问定义范围之外时抛出的异常。
定义: error.hpp:110
遇到 CUDA 错误时抛出的异常。
定义: error.hpp:45
逻辑前置条件被违反时抛出的异常。
定义: error.hpp:35