Gaudi Framework, version v21r8

Home   Generated: 17 Mar 2010

GslErrorPrint.cpp

Go to the documentation of this file.
00001 // $Id: GslErrorPrint.cpp,v 1.2 2006/01/10 20:00:05 hmd Exp $
00002 // ============================================================================
00003 // Include files
00004 // from Gaudi
00005 #include "GaudiKernel/ToolFactory.h"
00006 #include "GaudiKernel/MsgStream.h"
00007 #include "GaudiKernel/IChronoStatSvc.h"
00008 #include "GaudiKernel/Stat.h"
00009 // local
00010 #include "GslErrorPrint.h"
00011 
00012 // ============================================================================
00020 // ============================================================================
00021 
00022 // ============================================================================
00028 // ============================================================================
00029 DECLARE_TOOL_FACTORY(GslErrorPrint)
00030 // ============================================================================
00031 
00032 // ============================================================================
00038 // ============================================================================
00039 GslErrorPrint::GslErrorPrint
00040 ( const std::string& type   ,
00041   const std::string& name   ,
00042   const IInterface*  parent )
00043   : base_class ( type, name , parent )
00044 {}
00045 // ============================================================================
00046 
00047 // ============================================================================
00049 // ============================================================================
00050 GslErrorPrint::~GslErrorPrint(){}
00051 // ============================================================================
00052 
00053 // ============================================================================
00060 // ============================================================================
00061 StatusCode GslErrorPrint::handle
00062 ( const GslError& error  ) const
00063 {
00064   MsgStream log( msgSvc() , name() );
00065   log << MSG::ERROR
00066       << " GSL code " << error.code
00067       << " Message '" << error.reason << "'"
00068       << " File '"    << error.file   << "'"
00069       << " Line "     << error.line   << endmsg ;
00070   //
00071   return StatusCode::SUCCESS ;
00072 }
00073 // ============================================================================
00074 
00075 
00076 // ============================================================================
00077 // The END
00078 // ============================================================================

Generated at Wed Mar 17 18:06:11 2010 for Gaudi Framework, version v21r8 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004