The Gaudi Framework  v29r0 (ff2e7097)
GslErrorException.h
Go to the documentation of this file.
1 #ifndef GAUDIGSL_GSLERRORException_H
2 #define GAUDIGSL_GSLERRORException_H 1
3 // Include files
4 // from STL
5 #include <string>
6 // from GaudiKernel
7 #include "GaudiKernel/AlgTool.h"
8 // from GaudiGSL
9 #include "GaudiGSL/GslError.h"
11 // forward declaration
12 
26 class GslErrorException : public extends<AlgTool, IGslErrorHandler>
27 {
28 public:
35  StatusCode handle( const GslError& error ) const override;
36 
38  using extends::extends;
39 
40 private:
41  Gaudi::Property<std::vector<int>> m_ignore{this, "IgnoreCodes", {}, "codes to be ignored"};
42 };
43 
44 // ============================================================================
45 // The END
46 // ============================================================================
47 #endif // GAUDIGSL_GSLERRORException_H
48 // ============================================================================
Helper class to represent GSL errors.
Definition: GslError.h:16
Implementation of property with value of concrete type.
Definition: Property.h:319
StatusCode handle(const GslError &error) const override
handle the GSL error
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
Concrete GSL eror handler It is just thrown the exception.
Gaudi::Property< std::vector< int > > m_ignore