~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to src/common_cpp/JsonCppProcessors/Common/ReferenceResolverJsonToCpp.cc

  • 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:
21
21
namespace JsonToCpp {
22
22
RefManager& RefManager::GetInstance() {
23
23
    if (_instance == NULL) {
24
 
        throw(Squeal(Squeal::recoverable,
 
24
        throw(Exception(Exception::recoverable,
25
25
                    "Attempt to get RefManager before initialisation",
26
26
                    "ReferenceResolver::JsonToCpp::RefManager::GetInstance()"));
27
27
    }
34
34
 
35
35
void RefManager::Birth() {
36
36
    if (_instance != NULL) {
37
 
        throw(Squeal(Squeal::recoverable,
 
37
        throw(Exception(Exception::recoverable,
38
38
                    "Attempt to birth RefManager when it was already birthed",
39
39
                    "ReferenceResolver::JsonToCpp::RefManager::Birth()"));
40
40
    }
43
43
 
44
44
void RefManager::Death() {
45
45
    if (_instance == NULL) {
46
 
        throw(Squeal(Squeal::recoverable,
 
46
        throw(Exception(Exception::recoverable,
47
47
                    "Attempt to death RefManager before initialisation",
48
48
                    "ReferenceResolver::JsonToCpp::RefManager::Death()"));
49
49
    }