The Gaudi Framework  v28r3 (cc1cf868)
GslErrorPrint.cpp
Go to the documentation of this file.
1 // Include files
2 // from Gaudi
4 #include "GaudiKernel/Stat.h"
5 // local
6 #include "GslErrorPrint.h"
7 
8 // ============================================================================
16 // ============================================================================
18 // ============================================================================
19 
20 // ============================================================================
27 // ============================================================================
29 ( const GslError& error ) const
30 {
32  << " GSL code " << error.code
33  << " Message '" << error.reason << "'"
34  << " File '" << error.file << "'"
35  << " Line " << error.line << endmsg ;
36  //
37  return StatusCode::SUCCESS ;
38 }
39 // ============================================================================
40 
41 
42 // ============================================================================
43 // The END
44 // ============================================================================
std::string reason
error message (&#39;reason&#39;)
Definition: GslError.h:20
std::string file
file name
Definition: GslError.h:22
Helper class to represent GSL errors.
Definition: GslError.h:16
int code
error code (GSL)
Definition: GslError.h:26
Concrete GSL eror handler It is just prints the GSL errors.
Definition: GslErrorPrint.h:22
int line
line number
Definition: GslError.h:24
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:36
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244