~mbogomilov/maus/devel3

« back to all changes in this revision

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

  • 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:
21
21
namespace CppToJson { // humm, could probably abstract out...
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::CppToJson::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::CppToJson::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::CppToJson::RefManager::Death()"));
49
49
    }