Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4Exceptions/TGo4ControlException.cxx

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #include "TGo4ControlException.h"
00017 #include "Go4Log/TGo4Log.h"
00018 #include "TApplication.h"
00019 
00020 TGo4ControlException::TGo4ControlException()
00021 {
00022    TRACE((14,"TGo4ControlException::TGo4ControlException() constructor",__LINE__, __FILE__));
00023    fxDescription= "!!!-- Go4 Control Exception --!!!";
00024 }
00025 
00026 TGo4ControlException::TGo4ControlException(const TGo4ControlException &right)
00027    :TGo4RuntimeException(right)
00028 {
00029    TRACE((14,"TGo4ControlException::TGo4ControlException() copy constructor",__LINE__, __FILE__));
00030 }
00031 
00032 
00033 TGo4ControlException::~TGo4ControlException()
00034 {
00035   TRACE((14,"TGo4ControlException::~TGo4ControlException() destructor",__LINE__, __FILE__));
00036 }
00037 
00038 
00039 TGo4ControlException & TGo4ControlException::operator=(const TGo4ControlException &right)
00040 {
00041   TRACE((14,"TGo4ControlException::operator=",__LINE__, __FILE__));
00042   if (&right!=this)
00043     {
00044       TRACE((13,"TGo4ControlException::operator= processing copy",__LINE__, __FILE__));
00045       TGo4RuntimeException::operator=(right); // copy base class members
00046       // put additional member copies here...
00047       return *this;
00048     }
00049   else
00050     {
00051       // copy is already source object
00052       TRACE((13,"TGo4ControlException::operator= source and destination objects are identical",__LINE__, __FILE__));
00053       return *this;
00054     }
00055 }
00056 
00057 
00058 Int_t TGo4ControlException::Handle ()
00059 {
00060    TRACE((14,"TGo4ControlException::Handle()",__LINE__, __FILE__));
00061 
00062    TGo4Exception::Handle(); // superclass handler: output of exception
00063    TGo4Log::Debug("\n !!! Unspecified Control Exception, aborting application !!! \n");
00064    gApplication->Terminate(0);
00065    return 0;
00066 }
00067 
00068 
00069 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:55 2005 for Go4-v2.10-5 by doxygen1.2.15