Sha256: e7542a8b66ca3090c97c680d6d4cb0b4150396c51c06d1bff303c1754d3f5146
Contents?: true
Size: 692 Bytes
Versions: 8
Compression:
Stored size: 692 Bytes
Contents
#pragma once #include <exception> #include "text.hpp" namespace tomoto { namespace exc { class TrainingError : public std::runtime_error { public: using std::runtime_error::runtime_error; }; class Unimplemented : public std::runtime_error { public: using std::runtime_error::runtime_error; }; class InvalidArgument : public std::invalid_argument { public: using std::invalid_argument::invalid_argument; }; class EmptyWordArgument : public InvalidArgument { public: using InvalidArgument::InvalidArgument; }; } } #define THROW_ERROR_WITH_INFO(exec, msg) do {throw exec(tomoto::text::format("%s (%d): ", __FILE__, __LINE__) + msg); } while(0)
Version data entries
8 entries across 8 versions & 1 rubygems