Files
ray/cpp/include/ray/api/ray_exception.h
T
2020-03-27 23:01:08 +08:00

18 lines
330 B
C++

#pragma once
#include <exception>
#include <string>
namespace ray {
namespace api {
class RayException : public std::exception {
public:
RayException(const std::string &msg) : msg_(msg){};
const char *what() const noexcept override { return msg_.c_str(); };
std::string msg_;
};
} // namespace api
} // namespace ray