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

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2013-11-23 00:27:46 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-11-23 00:27:46 +0400
commitf13d0c824456b91fef2588261cbe52ce24c665ba (patch)
tree4c24ab4dff0c05840bcea2333ac522d9b956f7cf /moses/ChartHypothesis.cpp
parent028edf85501013ea06d575c67b5647f939f1f149 (diff)
UTIL_THROW_IF -> UTIL_THROW_IF2
Diffstat (limited to 'moses/ChartHypothesis.cpp')
-rw-r--r--moses/ChartHypothesis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/ChartHypothesis.cpp b/moses/ChartHypothesis.cpp
index 7f15dc4f1..07660396b 100644
--- a/moses/ChartHypothesis.cpp
+++ b/moses/ChartHypothesis.cpp
@@ -107,12 +107,12 @@ void ChartHypothesis::GetOutputPhrase(Phrase &outPhrase) const
std::set<size_t> sourcePosSet = GetCurrTargetPhrase().GetAlignTerm().GetAlignmentsForTarget(pos);
if (sourcePosSet.size() == 1) {
const std::vector<const Word*> *ruleSourceFromInputPath = GetTranslationOption().GetSourceRuleFromInputPath();
- UTIL_THROW_IF(ruleSourceFromInputPath == NULL, util::Exception,
+ UTIL_THROW_IF2(ruleSourceFromInputPath == NULL,
"No source rule");
size_t sourcePos = *sourcePosSet.begin();
const Word *sourceWord = ruleSourceFromInputPath->at(sourcePos);
- UTIL_THROW_IF(sourceWord == NULL, util::Exception,
+ UTIL_THROW_IF2(sourceWord == NULL,
"No source word");
const Factor *factor = sourceWord->GetFactor(placeholderFactor);
if (factor) {