1#include <tt/util/JsonUtil.h>
18 inline void requireNonEmpty(
const std::string& s,
const std::string& description) {
20 throw std::invalid_argument(description +
" cannot be empty");
34 throw std::invalid_argument(description +
" cannot be negative");
Tandem Tales is a platform that enables short, paired storytelling exercises between two agents over ...
Definition Client.h:22
void requireNonEmpty(const std::string &s, const std::string &description)
Throws an exception if the given string is empty.
Definition Util.h:18
void requireNonNegative(const T &x, const std::string &description)
Throws an exception if the given number is less than 0.
Definition Util.h:32