~mbogomilov/maus/devel3

« back to all changes in this revision

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

  • Committer: Durga Rajaram
  • Date: 2014-01-14 07:07:02 UTC
  • mfrom: (659.1.80 relcand)
  • Revision ID: durga@fnal.gov-20140114070702-2l1fuj1w6rraw7xe
Tags: MAUS-v0.7.6
MAUS-v0.7.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
(const Json::Value& parent_json, ParentType& parent_cpp) {
42
42
  if (!parent_json.isMember(_branch)) {
43
43
    if (_required) {
44
 
      throw Squeal(Squeal::recoverable,
 
44
      throw MAUS::Exception(Exception::recoverable,
45
45
                   "Missing required branch "+_branch+" converting json->cpp",
46
46
                   "PointerTRefItem::SetCppChild");
47
47
    } else {
51
51
  }
52
52
  if (parent_json[_branch].isNull()) {
53
53
    if (_required) {
54
 
      throw Squeal(Squeal::recoverable,
 
54
      throw MAUS::Exception(Exception::recoverable,
55
55
                   "Null branch "+_branch+" converting json->cpp",
56
56
                   "PointerTRefItem::SetCppChild");
57
57
    } else {
61
61
  }
62
62
  if (parent_json[_branch]["$ref"].isNull()) {
63
63
    if (_required) {
64
 
      throw Squeal(Squeal::recoverable,
 
64
      throw MAUS::Exception(Exception::recoverable,
65
65
                   "Null branch "+_branch+" converting json->cpp",
66
66
                   "PointerTRefItem::SetCppChild");
67
67
    } else {
92
92
  TObject* child_cpp = reference.GetObject();
93
93
  if (child_cpp == NULL) {
94
94
    if (_required) {
95
 
      throw Squeal(Squeal::recoverable,
 
95
      throw MAUS::Exception(Exception::recoverable,
96
96
                   "Failed to find branch "+_branch+": class data was NULL",
97
97
                   "PointerTRefItem::SetJsonChild");
98
98
    } else {