// $Id$ //----------------------------------------------------------------------- // The GSI Online Offline Object Oriented (Go4) Project // Experiment Data Processing at EE department, GSI //----------------------------------------------------------------------- // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH // Planckstr. 1, 64291 Darmstadt, Germany // Contact: http://go4.gsi.de //----------------------------------------------------------------------- // This software can be used under the license agreements as stated // in Go4License.txt file which is part of the distribution. //----------------------------------------------------------------------- #include "TGo4Exception.h" #include "TGo4Log.h" TGo4Exception::TGo4Exception() : fxDescription("!!!-- Go4 General Exception --!!!") { GO4TRACE((14, "TGo4Exception::TGo4Exception()", __LINE__, __FILE__)); } TGo4Exception::TGo4Exception(const TGo4Exception &right) { GO4TRACE((14,"TGo4Exception::TGo4Exception(const TGo4Exception &)",__LINE__, __FILE__)); fxDescription = right.fxDescription; } TGo4Exception::~TGo4Exception() { GO4TRACE((14,"TGo4Exception::TGo4Exception()",__LINE__, __FILE__)); } TGo4Exception & TGo4Exception::operator=(const TGo4Exception &right) { GO4TRACE((14, "TGo4Exception::operator=", __LINE__, __FILE__)); if (&right != this) fxDescription = right.fxDescription; return *this; } const char *TGo4Exception::What() { GO4TRACE((14,"TGo4Exception::What()",__LINE__, __FILE__)); return fxDescription.Data(); } Int_t TGo4Exception::Handle() { GO4TRACE((14,"TGo4Exception::Handle()",__LINE__, __FILE__)); TGo4Log::Debug(" %s was thrown! ",What()); return 0; }