All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GslErrorPrint Class Reference

Concrete GSL eror handler It is just prints the GSL errors. More...

#include <src/Components/GslErrorPrint.h>

Inheritance diagram for GslErrorPrint:
Collaboration diagram for GslErrorPrint:

Public Member Functions

StatusCode handle (const GslError &error) const override
 handle the GSL error More...
 
 GslErrorPrint (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor. More...
 
 ~GslErrorPrint () override=default
 destructor (protected and virtual) More...
 
- Public Member Functions inherited from extends< BASE, Interfaces >
void * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast. More...
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface. More...
 
std::vector< std::string > getInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames. More...
 
 ~extends () override=default
 Virtual destructor. More...
 
void * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast. More...
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface. More...
 
std::vector< std::string > getInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames. More...
 
 ~extends () override=default
 Virtual destructor. More...
 
- Public Member Functions inherited from extend_interfaces< Interfaces...>
 ~extend_interfaces () override=default
 Virtual destructor. More...
 
 ~extend_interfaces () override=default
 Virtual destructor. More...
 

Additional Inherited Members

- Public Types inherited from extends< BASE, Interfaces >
using base_class = extends
 Typedef to this class. More...
 
using extend_interfaces_base = extend_interfaces< Interfaces...>
 Typedef to the base of this class. More...
 
using base_class = extends
 Typedef to this class. More...
 
using extend_interfaces_base = extend_interfaces< Interfaces...>
 Typedef to the base of this class. More...
 
- Public Types inherited from extend_interfaces< Interfaces...>
using ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type
 take union of the ext_iids of all Interfaces... More...
 
using ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type
 take union of the ext_iids of all Interfaces... More...
 

Detailed Description

Concrete GSL eror handler It is just prints the GSL errors.

Author
Vanya Belyaev Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.tep..nosp@m.ru
Date
30/04/2002

Definition at line 22 of file GslErrorPrint.h.

Constructor & Destructor Documentation

GslErrorPrint::GslErrorPrint ( const std::string &  type,
const std::string &  name,
const IInterface parent 
)

Standard constructor.

Parameters
typetool type (?)
nametool name
parentpointer to parent

Definition at line 29 of file GslErrorPrint.cpp.

32  : base_class ( type, name , parent )
33 {}
extends base_class
Typedef to this class.
Definition: extends.h:14
string type
Definition: gaudirun.py:151
GslErrorPrint::~GslErrorPrint ( )
overridedefault

destructor (protected and virtual)

Member Function Documentation

StatusCode GslErrorPrint::handle ( const GslError error) const
override

handle the GSL error

See also
IGslErrorHandler
Parameters
errorerror to be handled
See also
GslError
Returns
status code

Definition at line 47 of file GslErrorPrint.cpp.

48 {
49  MsgStream log( msgSvc() , name() );
50  log << MSG::ERROR
51  << " GSL code " << error.code
52  << " Message '" << error.reason << "'"
53  << " File '" << error.file << "'"
54  << " Line " << error.line << endmsg ;
55  //
56  return StatusCode::SUCCESS ;
57 }
std::string reason
error message ('reason')
Definition: GslError.h:19
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
std::string file
file name
Definition: GslError.h:21
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
int code
error code (GSL)
Definition: GslError.h:25
int line
line number
Definition: GslError.h:23

The documentation for this class was generated from the following files: