00001
00002
00003 #ifndef GAUDIALG_ERRORTOOL_H
00004 #define GAUDIALG_ERRORTOOL_H 1
00005
00006
00007
00008
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 StatusCode Assert
00113 ( const bool ok ,
00114 const std::string& message = "" ,
00115 const StatusCode sc = StatusCode::FAILURE ) const
00116 { return GaudiTool::Assert ( ok , message , sc ) ; }
00117
00126 virtual StatusCode Exception
00127 ( const std::string & msg ,
00128 const GaudiException & exc ,
00129 const StatusCode sc = StatusCode::FAILURE ) const
00130 { return Exception ( msg , exc , sc ) ; }
00131
00140 virtual StatusCode Exception
00141 ( const std::string & msg ,
00142 const std::exception & exc ,
00143 const StatusCode sc = StatusCode::FAILURE ) const
00144 { return Exception ( msg , exc , sc ) ; }
00145
00153 virtual StatusCode Exception
00154 ( const std::string& msg = "no message" ,
00155 const StatusCode sc = StatusCode::FAILURE ) const
00156 { return Exception ( msg , sc ) ; }
00157
00158 };
00159
00160 #endif // GAUDIALG_ERRORTOOL_H