00001 #pragma once 00002 00003 #include <string> 00004 00005 namespace MosesTraining { 00006 namespace Syntax { 00007 00008 class Exception { 00009 public: 00010 Exception(const char *msg) : msg_(msg) {} 00011 Exception(const std::string &msg) : msg_(msg) {} 00012 00013 const std::string &msg() const { return msg_; } 00014 00015 private: 00016 std::string msg_; 00017 }; 00018 00019 } // namespace Syntax 00020 } // namespace MosesTraining