| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

GslErrorPrint.cpp
Go to the documentation of this file.
1 // Include files
2 // from Gaudi
3 #include "GaudiKernel/IChronoStatSvc.h"
4 #include "GaudiKernel/Stat.h"
5 // local
6 #include "GslErrorPrint.h"
7
8 // ============================================================================
16 // ============================================================================
17 DECLARE_COMPONENT( GslErrorPrint )
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 // ============================================================================
StatusCode::SUCCESS
Definition: StatusCode.h:29
GslError
Helper class to represent GSL errors.
Definition: GslError.h:16
GslErrorPrint
Concrete GSL eror handler It is just prints the GSL errors.
Definition: GslErrorPrint.h:22
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:33
GslErrorPrint.h
CommonMessagingBase::error
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Definition: CommonMessaging.h:106
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
Stat.h
IChronoStatSvc.h
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:209