~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to src/common_cpp/JsonCppProcessors/Common/ObjectProcessorNS/ConstantItem-inl.hh

  • Committer: Durga Rajaram
  • Date: 2014-01-14 04:39:44 UTC
  • mfrom: (663.38.24 merge)
  • mto: (698.1.1 release)
  • mto: This revision was merged to the branch mainline in revision 693.
  • Revision ID: durga@fnal.gov-20140114043944-qf0i8nksnwu74cll
candidate 0.7.6 - trunk r1026

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
void ConstantItem<ParentType>::_SetCppChild
35
35
                      (const Json::Value& parent_json, ParentType& parent_cpp) {
36
36
    if (_required && !parent_json.isMember(_branch)) {
37
 
            throw Squeal(Squeal::recoverable,
 
37
            throw MAUS::Exception(Exception::recoverable,
38
38
            "Missing required branch "+_branch+" converting json->cpp",
39
39
            "ConstantItem::_SetCppChild");
40
40
    } else if (parent_json.isMember(_branch) && !JsonWrapper::AlmostEqual
41
41
                               (parent_json[_branch], _child_value, 1e-9)) {
42
 
            throw Squeal(Squeal::recoverable,
 
42
            throw MAUS::Exception(Exception::recoverable,
43
43
            "Wrong value in branch "+_branch+": "+
44
44
                            JsonWrapper::JsonToString(parent_json[_branch]),
45
45
            "ConstantItem::_SetCppChild");