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 <hieuhoang@gmail.com>2013-11-19 17:19:23 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-11-19 17:19:23 +0400
commitc2c86ce50d1900db55e420dd08f38facfce50501 (patch)
tree85ca7cb5d2445dd60cd96325945e14a9626c50b7 /moses/DecodeGraph.h
parent90d115496515c7f6e1383c19694bb91e21fdcbe9 (diff)
replace CHECK with UTIL_THROW_IF in Moses
Diffstat (limited to 'moses/DecodeGraph.h')
-rw-r--r--moses/DecodeGraph.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/moses/DecodeGraph.h b/moses/DecodeGraph.h
index 4225e4a84..e25eaf45e 100644
--- a/moses/DecodeGraph.h
+++ b/moses/DecodeGraph.h
@@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#ifndef moses_DecodeGraph_h
#define moses_DecodeGraph_h
-#include "util/check.hh"
+#include "util/exception.hh"
#include <list>
#include <iterator>
#include "TypeDef.h"
@@ -78,7 +78,9 @@ public:
}
size_t GetMaxChartSpan() const {
- CHECK(m_maxChartSpan != NOT_FOUND);
+ UTIL_THROW_IF(m_maxChartSpan == NOT_FOUND,
+ util::Exception,
+ "Max chart span not specified");
return m_maxChartSpan;
}