~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to src/common_cpp/JsonCppStreamer/RStream.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:
17
17
 
18
18
 
19
19
#include "JsonCppStreamer/RStream.hh"
20
 
#include "Interface/Squeal.hh"
 
20
#include "Utils/Exception.hh"
21
21
 
22
22
rstream::rstream(const char* filename, const char* mode)
23
23
  : m_tree(0),
26
26
    Squeak::mout(Squeak::fatal)
27
27
      << "Couldn't open ROOT TFile as no filename or open mode given"
28
28
      << std::endl;
29
 
    throw Squeal(Squeal::nonRecoverable,
 
29
    throw MAUS::Exception(MAUS::Exception::nonRecoverable,
30
30
                 "rstream object not correctly initialised as null \"\" string passed as filename or open mode.",
31
31
                 "rstream::rstream(const char*, const char*)");
32
32
  }
36
36
    Squeak::mout(Squeak::fatal)
37
37
      << "ROOT TFile opened incorrectly"
38
38
      << std::endl;
39
 
    throw Squeal(Squeal::nonRecoverable,
 
39
    throw MAUS::Exception(MAUS::Exception::nonRecoverable,
40
40
                 "rstream object not correctly initialised as TFile not opened properly",
41
41
                 "rstream::rstream(const char*, const char*)");
42
42
  }