Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Exception.h « compact-rule-table « training « scripts - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3868fcec59dab8b53054ec56f398ad8194d534f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
#ifndef EXCEPTION_H_
#define EXCEPTION_H_

#include <string>

namespace moses {

class Exception {
 public:
  Exception(const char *msg) : m_msg(msg) {}
  Exception(const std::string &msg) : m_msg(msg) {}

  const std::string &getMsg() const { return m_msg; }

 private:
  std::string m_msg;
};

}  // namespace moses

#endif