Gaudi Framework, version v23r4

Home   Generated: Mon Sep 17 2012

ErrorTool.h

Go to the documentation of this file.
00001 // $Id: ErrorTool.h,v 1.3 2006/11/30 10:16:12 mato Exp $
00002 // ============================================================================
00003 #ifndef GAUDIALG_ERRORTOOL_H
00004 #define GAUDIALG_ERRORTOOL_H 1
00005 // ============================================================================
00006 // Include files
00007 // ============================================================================
00008 // Gaudi
00009 // ============================================================================
00010 #include "GaudiAlg/GaudiTool.h"
00011 #include "GaudiAlg/IErrorTool.h"
00012 // ============================================================================
00013 
00014 // ============================================================================
00021 // ============================================================================
00022 
00023 class ErrorTool :         public  GaudiTool ,
00024                           virtual public IErrorTool
00025 {
00026 
00027 public:
00028 
00036   ErrorTool ( const std::string& type,
00037               const std::string& name,
00038               const IInterface* parent);
00039 
00041   virtual ~ErrorTool( );
00042 
00043 public:
00044 
00066   virtual StatusCode Error
00067   ( const std::string& msg ,
00068     const StatusCode   st  = StatusCode::FAILURE ,
00069     const size_t       mx  = 10                  ) const
00070   { return GaudiTool::Error ( msg , st, mx ) ; }
00071 
00082   virtual StatusCode Warning
00083   ( const std::string& msg ,
00084     const StatusCode   st  = StatusCode::FAILURE ,
00085     const size_t       mx  = 10                  ) const
00086   { return GaudiTool::Warning( msg , st , mx ) ; }
00087 
00097   virtual StatusCode Print
00098   ( const std::string& msg ,
00099     const StatusCode   st  = StatusCode::SUCCESS ,
00100     const MSG::Level   lev = MSG::INFO           ) const
00101   { return GaudiTool::Print( msg , st , lev ) ; }
00102 
00112   virtual void Assert
00113   ( const bool         ok                            ,
00114     const std::string& message = ""                  ,
00115     const StatusCode   sc      = StatusCode::FAILURE ) const
00116   { GaudiTool::Assert ( ok , message , sc ) ; }
00117 
00126   virtual void Exception
00127   ( const std::string    & msg                        ,
00128     const GaudiException & exc                        ,
00129     const StatusCode       sc  = StatusCode::FAILURE  ) const
00130   { Exception ( msg , exc , sc ) ; }
00131 
00140   virtual void Exception
00141   ( const std::string    & msg                        ,
00142     const std::exception & exc                        ,
00143     const StatusCode       sc  = StatusCode::FAILURE  ) const
00144   { Exception ( msg , exc , sc ) ; }
00145 
00153   virtual void Exception
00154   ( const std::string& msg = "no message"        ,
00155     const StatusCode   sc  = StatusCode::FAILURE ) const
00156   { Exception ( msg , sc ) ; }
00157 
00158 };
00159 
00160 #endif // GAUDIALG_ERRORTOOL_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Mon Sep 17 2012 13:49:26 for Gaudi Framework, version v23r4 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004