The Gaudi Framework  v30r3 (a5ef0a68)
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 // ============================================================================
28 StatusCode GslErrorPrint::handle( const GslError& error ) const
29 {
30  AlgTool::error() << " GSL code " << error.code << " Message '" << error.reason << "'"
31  << " File '" << error.file << "'"
32  << " Line " << error.line << endmsg;
33  //
34  return StatusCode::SUCCESS;
35 }
36 // ============================================================================
37 
38 // ============================================================================
39 // The END
40 // ============================================================================
Helper class to represent GSL errors.
Definition: GslError.h:16
Concrete GSL eror handler It is just prints the GSL errors.
Definition: GslErrorPrint.h:22
#define DECLARE_COMPONENT(type)
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:209