mosesdecoder/phrase-extract/syntax-common/exception.h
Phil Williams 60e56efc6b phrase-extract: add syntax-common sub-library
And remove some (near-)duplicate code from pcfg-common and score-stsg.
2014-12-07 14:27:51 +00:00

21 lines
340 B
C++

#pragma once
#include <string>
namespace MosesTraining {
namespace Syntax {
class Exception {
public:
Exception(const char *msg) : msg_(msg) {}
Exception(const std::string &msg) : msg_(msg) {}
const std::string &msg() const { return msg_; }
private:
std::string msg_;
};
} // namespace Syntax
} // namespace MosesTraining