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

/Go4Analysis/TGo4UserException.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 "TGo4UserException.h"
00017 
00018 #include "Go4Log/TGo4Log.h"
00019 #include "Go4Analysis/TGo4AnalysisImp.h"
00020 
00021 TGo4UserException::TGo4UserException (Int_t prio, const Text_t* text,...)
00022 : fiPriority(prio)
00023    {
00024    TRACE((14,"TGo4UserException:TGo4UserException (TGo4TaskHandler*)", __LINE__, __FILE__));
00025    fxDescription= "!!!-- Go4 User Exception --!!!";
00026    // put potential printf arguments in text:
00027    Text_t txtbuf[TGo4Log::fguMESLEN];
00028    va_list args;
00029    va_start(args, text);
00030    vsnprintf(txtbuf, TGo4Log::fguMESLEN, text, args);
00031    va_end(args);
00032    fxMessage = txtbuf;
00033 
00034 }
00035 
00036 TGo4UserException::~TGo4UserException()
00037 {
00038  TRACE((14,"TGo4UserException:~TGo4UserException", __LINE__, __FILE__));
00039 
00040 }
00041 
00042 TGo4UserException & TGo4UserException::operator= (const TGo4UserException & right)
00043 {
00044  TRACE((14,"TGo4UserException:operator=",__LINE__, __FILE__));
00045  if (&right!=this)
00046     {
00047       TGo4RuntimeException::operator=(right); // copy base class members
00048       // put additional member copies here...
00049       fxMessage=right.fxMessage;
00050       fiPriority=right.fiPriority;
00051       return *this;
00052     }
00053   else
00054     {
00055       // copy is already source object
00056       return *this;
00057     }
00058 
00059 
00060 
00061 }
00062 
00063 TGo4UserException::TGo4UserException(const TGo4UserException &right)
00064   :TGo4RuntimeException(right)
00065 {
00066    TRACE((14,"TGo4UserException:TGo4UserException(right)", __LINE__, __FILE__));
00067    fxMessage=right.fxMessage;
00068    fiPriority=right.fiPriority;
00069 }
00070 
00071 Int_t TGo4UserException::Handle()
00072 {
00073    TRACE((12,"TGo4UserException::Handle()", __LINE__, __FILE__));
00074    TGo4Log::Message(GetPriority(),GetMessage());
00075 
00076 return 0;
00077 }
00078 
00079 
00080 //----------------------------END OF GO4 SOURCE FILE ---------------------

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