~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to src/common_cpp/JsonCppProcessors/Common/ReferenceResolverCppToJson-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:
25
25
 
26
26
#include "src/common_cpp/JsonCppProcessors/ProcessorBase.hh"
27
27
#include "src/common_cpp/Utils/JsonWrapper.hh"
28
 
#include "src/legacy/Interface/Squeal.hh"
 
28
#include "Utils/Exception.hh"
29
29
#include "src/legacy/Interface/STLUtils.hh"
30
30
 
31
31
namespace MAUS {
75
75
    TypedPointerValueTable<PointerType>* table =
76
76
                                       GetTypedPointerValueTable<PointerType>();
77
77
    if (table->_data_hash.find(pointer) != table->_data_hash.end())
78
 
        throw(Squeal(Squeal::recoverable,
 
78
        throw(Exception(Exception::recoverable,
79
79
                     "Attempt to add pointer for C++ address "+
80
80
                     STLUtils::ToString(pointer)+
81
81
                     " to hash table when it was already added",
90
90
          GetTypedPointerValueTable<TObject>();
91
91
      if (tableTObject->_data_hash.find(tobject_pointer) !=
92
92
          tableTObject->_data_hash.end())
93
 
        throw(Squeal(Squeal::recoverable,
 
93
        throw(Exception(Exception::recoverable,
94
94
                     "Attempt to add pointer for C++ address "+
95
95
                     STLUtils::ToString(pointer)+
96
96
                     " to TObject hash table when it was already added",
104
104
    TypedPointerValueTable<PointerType>* table =
105
105
                                       GetTypedPointerValueTable<PointerType>();
106
106
    if (!table) {
107
 
        throw(Squeal(Squeal::recoverable,
 
107
        throw(Exception(Exception::recoverable,
108
108
                     "Attempt to get pointer for json address "+
109
109
                     STLUtils::ToString(pointer)+
110
110
                     " when it was never added",
111
111
                     "CppToJson::RefManager::GetPointerAsValue(...)"));
112
112
    }
113
113
    if (table->_data_hash.find(pointer) == table->_data_hash.end())
114
 
        throw(Squeal(Squeal::recoverable,
 
114
        throw(Exception(Exception::recoverable,
115
115
                     "Attempt to get pointer for json address "+
116
116
                     STLUtils::ToString(pointer)+
117
117
                     " when it was never added",