The Gaudi Framework
v26r0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
ExceptionSvc.h
Go to the documentation of this file.
1
#ifndef GAUDISVC_EXCEPTIONSVC_H
2
#define GAUDISVC_EXCEPTIONSVC_H
3
// ============================================================================
4
// Include files
5
// ============================================================================
6
// GaudiKernel
7
// ============================================================================
8
#include "
GaudiKernel/IExceptionSvc.h
"
9
#include "
GaudiKernel/Service.h
"
10
#include "
GaudiKernel/MsgStream.h
"
11
// ============================================================================
18
// ============================================================================
19
class
ExceptionSvc
:
public
extends1
<Service, IExceptionSvc> {
20
public
:
22
virtual
StatusCode
handle
23
(
const
INamedInterface
& o ,
24
const
GaudiException
& e )
const
;
25
virtual
StatusCode
handle
27
(
const
INamedInterface
& o ,
28
const
std::exception & e )
const
;
29
virtual
StatusCode
handle
31
(
const
INamedInterface
& o )
const
;
32
virtual
StatusCode
handleErr
34
(
const
INamedInterface
& o ,
35
const
StatusCode
&
s
)
const
;
36
public
:
38
virtual
StatusCode
initialize
() ;
40
virtual
StatusCode
finalize
() ;
41
public
:
46
ExceptionSvc
47
(
const
std::string&
name
,
48
ISvcLocator
* svc ) ;
50
virtual
~ExceptionSvc
();
51
private
:
52
// default constructor is disabled
53
ExceptionSvc
() ;
54
// copy constructor is disabled
55
ExceptionSvc
(
const
ExceptionSvc
& ) ;
56
// assignment operator is disabled
57
ExceptionSvc
&
operator=
(
const
ExceptionSvc
& ) ;
58
// process exceptions
59
virtual
StatusCode
process
(
const
INamedInterface
& o )
const
;
60
private
:
61
62
enum
Policy
{
ALL
,
NONE
};
63
enum
ReturnState
{
SUCCESS
,
FAILURE
,
RECOVERABLE
,
RETHROW
,
DEFAULT
};
64
65
Policy
m_mode_exc
,
m_mode_err
;
66
StringProperty
m_mode_exc_s
,
m_mode_err_s
;
67
std::map<std::string,ReturnState>
m_retCodesExc
,
m_retCodesErr
;
68
69
mutable
MsgStream
m_log
;
70
71
};
72
73
// ============================================================================
74
#endif // GAUDISVC_EXCEPTIONSVC_H
75
// ============================================================================
76
// The END
77
// ============================================================================
MsgStream
Definition of the MsgStream class used to transmit messages.
Definition:
MsgStream.h:24
GaudiException
Define general base for Gaudi exception.
Definition:
GaudiException.h:24
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition:
ISvcLocator.h:26
MsgStream.h
ExceptionSvc::initialize
virtual StatusCode initialize()
initialize the service
Definition:
ExceptionSvc.cpp:57
ExceptionSvc::m_retCodesErr
std::map< std::string, ReturnState > m_retCodesErr
Definition:
ExceptionSvc.h:67
ExceptionSvc::handleErr
virtual StatusCode handleErr(const INamedInterface &o, const StatusCode &s) const
Handle errors.
Definition:
ExceptionSvc.cpp:207
ExceptionSvc::handle
virtual StatusCode handle(const INamedInterface &o, const GaudiException &e) const
Handle caught GaudiExceptions.
Definition:
ExceptionSvc.cpp:307
ExceptionSvc::ALL
Definition:
ExceptionSvc.h:62
ExceptionSvc::m_mode_exc
Policy m_mode_exc
Definition:
ExceptionSvc.h:65
SimpleProperty< std::string >
Service.h
ExceptionSvc::m_mode_err_s
StringProperty m_mode_err_s
Definition:
ExceptionSvc.h:66
ExceptionSvc::ExceptionSvc
ExceptionSvc()
no default constructor
ExceptionSvc::RETHROW
Definition:
ExceptionSvc.h:63
ExceptionSvc::RECOVERABLE
Definition:
ExceptionSvc.h:63
StatusCode
This class is used for returning status codes from appropriate routines.
Definition:
StatusCode.h:30
extends1
Base class used to extend a class implementing other interfaces.
Definition:
extends.h:10
ExceptionSvc
Simple implementation of IExceptionSvc abstract interface.
Definition:
ExceptionSvc.h:19
ExceptionSvc::m_mode_exc_s
StringProperty m_mode_exc_s
Definition:
ExceptionSvc.h:66
Service::name
virtual const std::string & name() const
Retrieve name of the service.
Definition:
Service.cpp:331
ExceptionSvc::ReturnState
ReturnState
Definition:
ExceptionSvc.h:63
ExceptionSvc::m_retCodesExc
std::map< std::string, ReturnState > m_retCodesExc
Definition:
ExceptionSvc.h:67
INamedInterface
IInterface compliant class extending IInterface with the name() method.
Definition:
INamedInterface.h:15
ExceptionSvc::FAILURE
Definition:
ExceptionSvc.h:63
ExceptionSvc::DEFAULT
Definition:
ExceptionSvc.h:63
ExceptionSvc::finalize
virtual StatusCode finalize()
finalize the service
Definition:
ExceptionSvc.cpp:198
ExceptionSvc::Policy
Policy
Definition:
ExceptionSvc.h:62
ExceptionSvc::SUCCESS
Definition:
ExceptionSvc.h:63
gaudirun.s
string s
Definition:
gaudirun.py:210
ExceptionSvc::~ExceptionSvc
virtual ~ExceptionSvc()
Destructor.
Definition:
ExceptionSvc.cpp:49
ExceptionSvc::NONE
Definition:
ExceptionSvc.h:62
ExceptionSvc::m_mode_err
Policy m_mode_err
Definition:
ExceptionSvc.h:65
ExceptionSvc::process
virtual StatusCode process(const INamedInterface &o) const
Definition:
ExceptionSvc.cpp:249
ExceptionSvc::operator=
ExceptionSvc & operator=(const ExceptionSvc &)
no assignement
ExceptionSvc::m_log
MsgStream m_log
Definition:
ExceptionSvc.h:69
IExceptionSvc.h
GaudiMonitor
src
ExceptionSvc.h
Generated on Tue Jan 20 2015 20:27:25 for The Gaudi Framework by
1.8.7