All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GslErrorPrint.cpp
Go to the documentation of this file.
1 // $Id: GslErrorPrint.cpp,v 1.2 2006/01/10 20:00:05 hmd Exp $
2 // ============================================================================
3 // Include files
4 // from Gaudi
5 #include "GaudiKernel/ToolFactory.h"
6 #include "GaudiKernel/MsgStream.h"
7 #include "GaudiKernel/IChronoStatSvc.h"
8 #include "GaudiKernel/Stat.h"
9 // local
10 #include "GslErrorPrint.h"
11 
12 // ============================================================================
20 // ============================================================================
22 // ============================================================================
23 
24 // ============================================================================
30 // ============================================================================
32 ( const std::string& type ,
33  const std::string& name ,
34  const IInterface* parent )
35  : base_class ( type, name , parent )
36 {}
37 // ============================================================================
38 
39 // ============================================================================
41 // ============================================================================
43 // ============================================================================
44 
45 // ============================================================================
52 // ============================================================================
54 ( const GslError& error ) const
55 {
56  MsgStream log( msgSvc() , name() );
57  log << MSG::ERROR
58  << " GSL code " << error.code
59  << " Message '" << error.reason << "'"
60  << " File '" << error.file << "'"
61  << " Line " << error.line << endmsg ;
62  //
63  return StatusCode::SUCCESS ;
64 }
65 // ============================================================================
66 
67 
68 // ============================================================================
69 // The END
70 // ============================================================================