diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-11-19 17:19:23 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-11-19 17:19:23 +0400 |
commit | c2c86ce50d1900db55e420dd08f38facfce50501 (patch) | |
tree | 85ca7cb5d2445dd60cd96325945e14a9626c50b7 /moses/DecodeGraph.h | |
parent | 90d115496515c7f6e1383c19694bb91e21fdcbe9 (diff) |
replace CHECK with UTIL_THROW_IF in Moses
Diffstat (limited to 'moses/DecodeGraph.h')
-rw-r--r-- | moses/DecodeGraph.h | 6 |
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; } |