diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-11-23 00:27:46 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-11-23 00:27:46 +0400 |
commit | f13d0c824456b91fef2588261cbe52ce24c665ba (patch) | |
tree | 4c24ab4dff0c05840bcea2333ac522d9b956f7cf /moses/ChartHypothesis.cpp | |
parent | 028edf85501013ea06d575c67b5647f939f1f149 (diff) |
UTIL_THROW_IF -> UTIL_THROW_IF2
Diffstat (limited to 'moses/ChartHypothesis.cpp')
-rw-r--r-- | moses/ChartHypothesis.cpp | 4 |
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) { |