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
8 #include "GaudiKernel/Stat.h"
9 // local
10 #include "GslErrorPrint.h"
11 
12 // ============================================================================
20 // ============================================================================
21 
22 // ============================================================================
28 // ============================================================================
30 // ============================================================================
31 
32 // ============================================================================
38 // ============================================================================
40 ( const std::string& type ,
41  const std::string& name ,
42  const IInterface* parent )
43  : base_class ( type, name , parent )
44 {}
45 // ============================================================================
46 
47 // ============================================================================
49 // ============================================================================
51 // ============================================================================
52 
53 // ============================================================================
60 // ============================================================================
62 ( const GslError& error ) const
63 {
64  MsgStream log( msgSvc() , name() );
65  log << MSG::ERROR
66  << " GSL code " << error.code
67  << " Message '" << error.reason << "'"
68  << " File '" << error.file << "'"
69  << " Line " << error.line << endmsg ;
70  //
71  return StatusCode::SUCCESS ;
72 }
73 // ============================================================================
74 
75 
76 // ============================================================================
77 // The END
78 // ============================================================================
std::string reason
error message ('reason')
Definition: GslError.h:21
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
std::string file
file name
Definition: GslError.h:23
Helper class to represent GSL errors.
Definition: GslError.h:17
int code
error code (GSL)
Definition: GslError.h:27
int line
line number
Definition: GslError.h:25
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:35
virtual StatusCode handle(const GslError &error) const
handle the GSL error
string type
Definition: gaudirun.py:126
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
Definition of the basic interface.
Definition: IInterface.h:160
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
virtual ~GslErrorPrint()
destructor (protected and virtual)
Concrete GSL eror handler It is just prints the GSL errors.
Definition: GslErrorPrint.h:24
std
AIDA -> ROTO converter.
Definition: GaudiAlgs.py:73
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:243