GSI Object Oriented Online Offline (Go4)
GO4-6.4.0
Loading...
Searching...
No Matches
Go4Exceptions
TGo4RuntimeException.cxx
Go to the documentation of this file.
1
// $Id$
2
//-----------------------------------------------------------------------
3
// The GSI Online Offline Object Oriented (Go4) Project
4
// Experiment Data Processing at EE department, GSI
5
//-----------------------------------------------------------------------
6
// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7
// Planckstr. 1, 64291 Darmstadt, Germany
8
// Contact: http://go4.gsi.de
9
//-----------------------------------------------------------------------
10
// This software can be used under the license agreements as stated
11
// in Go4License.txt file which is part of the distribution.
12
//-----------------------------------------------------------------------
13
14
#include "
TGo4RuntimeException.h
"
15
16
#include "TApplication.h"
17
18
#include "
TGo4Log.h
"
19
20
TGo4RuntimeException::TGo4RuntimeException
()
21
{
22
fxDescription
=
"!!!-- Go4 Runtime Exception --!!!"
;
23
}
24
25
TGo4RuntimeException::~TGo4RuntimeException
()
26
{
27
}
28
29
TGo4RuntimeException::TGo4RuntimeException
(
const
TGo4RuntimeException
&right)
30
:
TGo4Exception
(right)
31
{
32
}
33
34
Int_t
TGo4RuntimeException::Handle
()
35
{
36
TGo4Exception::Handle
();
// superclass handler: output of exception
37
TGo4Log::Debug
(
"\n !!! Unspecified Runtime Exception, aborting application !!! \n"
);
38
gApplication->Terminate(0);
39
return
0;
40
}
41
42
TGo4RuntimeException
&
TGo4RuntimeException::operator=
(
const
TGo4RuntimeException
&right)
43
{
44
if
(&right !=
this
)
45
TGo4Exception::operator=
(right);
// copy base class members
46
47
return
*
this
;
48
}
TGo4Log.h
TGo4RuntimeException.h
TGo4Exception::fxDescription
TString fxDescription
Definition
TGo4Exception.h:38
TGo4Exception::TGo4Exception
TGo4Exception()
Definition
TGo4Exception.cxx:18
TGo4Exception::operator=
TGo4Exception & operator=(const TGo4Exception &right)
Definition
TGo4Exception.cxx:34
TGo4Exception::Handle
virtual Int_t Handle()
This is a default handler function for the respective exception type.
Definition
TGo4Exception.cxx:48
TGo4Log::Debug
static void Debug(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 0.
Definition
TGo4Log.cxx:281
TGo4RuntimeException::Handle
Int_t Handle() override
This is a default handler function for the respective exception type.
Definition
TGo4RuntimeException.cxx:34
TGo4RuntimeException::TGo4RuntimeException
TGo4RuntimeException()
Definition
TGo4RuntimeException.cxx:20
TGo4RuntimeException::~TGo4RuntimeException
virtual ~TGo4RuntimeException()
Definition
TGo4RuntimeException.cxx:25
TGo4RuntimeException::operator=
TGo4RuntimeException & operator=(const TGo4RuntimeException &right)
Definition
TGo4RuntimeException.cxx:42
Generated by
1.13.2