mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 04:10:33 +08:00
18 lines
330 B
C++
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
|