mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-29 06:52:34 +03:00
9062e3b73b
build_binary. Also some minor bugfixes. git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3762 1f5c12ca-751b-0410-a591-d2e778427230
49 lines
1012 B
C++
49 lines
1012 B
C++
#ifndef LM_LM_EXCEPTION__
|
|
#define LM_LM_EXCEPTION__
|
|
|
|
// Named to avoid conflict with util/exception.hh.
|
|
|
|
#include "util/exception.hh"
|
|
#include "util/string_piece.hh"
|
|
|
|
#include <exception>
|
|
#include <string>
|
|
|
|
namespace lm {
|
|
|
|
class ConfigException : public util::Exception {
|
|
public:
|
|
ConfigException() throw();
|
|
~ConfigException() throw();
|
|
};
|
|
|
|
class LoadException : public util::Exception {
|
|
public:
|
|
virtual ~LoadException() throw();
|
|
|
|
protected:
|
|
LoadException() throw();
|
|
};
|
|
|
|
class FormatLoadException : public LoadException {
|
|
public:
|
|
FormatLoadException() throw();
|
|
~FormatLoadException() throw();
|
|
};
|
|
|
|
class VocabLoadException : public LoadException {
|
|
public:
|
|
virtual ~VocabLoadException() throw();
|
|
VocabLoadException() throw();
|
|
};
|
|
|
|
class SpecialWordMissingException : public VocabLoadException {
|
|
public:
|
|
explicit SpecialWordMissingException(StringPiece which) throw();
|
|
~SpecialWordMissingException() throw();
|
|
};
|
|
|
|
} // namespace lm
|
|
|
|
#endif // LM_LM_EXCEPTION
|