12 #include <core/system/exceptions/TuriErrorCode.hpp> 16 class TuriException :
public std::exception {
18 TuriException() =
delete;
19 TuriException& operator=(
const TuriException&) =
delete;
20 TuriException& operator=(TuriException&&) =
delete;
22 ~TuriException()
override;
24 TuriException(
const TuriException&);
25 TuriException(TuriException&&);
27 explicit TuriException(TuriErrorCode error_code);
28 TuriException(TuriErrorCode error_code, std::string detail_message);
30 const char* what()
const throw() override;
31 const
std::
string& Message() const;
33 TuriErrorCode ErrorCode() const noexcept;
34 const
std::
string& ErrorDetail() const;
37 const TuriErrorCode error_code_;
38 const
std::
string detail_message_;
39 const
std::
string message_;