Gaudi Framework, version v24r2

Home   Generated: Wed Dec 4 2013
 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 // ============================================================================
9 #include "GaudiKernel/Service.h"
10 #include "GaudiKernel/SvcFactory.h"
11 #include "GaudiKernel/MsgStream.h"
12 // ============================================================================
19 // ============================================================================
20 class ExceptionSvc: public extends1<Service, IExceptionSvc> {
21  friend class SvcFactory<ExceptionSvc> ;
22 public:
24  virtual StatusCode handle
25  ( const INamedInterface& o ,
26  const GaudiException& e ) const ;
27 
28  virtual StatusCode handle
29  ( const INamedInterface& o ,
30  const std::exception & e ) const ;
31 
32  virtual StatusCode handle
33  ( const INamedInterface& o ) const ;
34 
35  virtual StatusCode handleErr
36  ( const INamedInterface& o ,
37  const StatusCode& s ) const ;
38 public:
40  virtual StatusCode initialize () ;
42  virtual StatusCode finalize () ;
43 public:
49  ( const std::string& name ,
50  ISvcLocator* svc ) ;
52  virtual ~ExceptionSvc();
53 private:
54  // default constructor is disabled
55  ExceptionSvc () ;
56  // copy constructor is disabled
57  ExceptionSvc ( const ExceptionSvc& ) ;
58  // assignment operator is disabled
59  ExceptionSvc& operator=( const ExceptionSvc& ) ;
60  // process exceptions
61  virtual StatusCode process ( const INamedInterface& o ) const ;
62 private:
63 
64  enum Policy { ALL, NONE };
66 
70 
71  mutable MsgStream m_log;
72 
73 };
74 
75 // ============================================================================
76 #endif // GAUDISVC_EXCEPTIONSVC_H
77 // ============================================================================
78 // The END
79 // ============================================================================

Generated at Wed Dec 4 2013 14:33:10 for Gaudi Framework, version v24r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004