IErrorTool.h
Go to the documentation of this file.00001
00002
00003 #ifndef GAUDIALG_IERRORTOOL_H
00004 #define GAUDIALG_IERRORTOOL_H 1
00005
00006
00007
00008
00009
00010 #include <string>
00011
00012
00013
00014 #include "GaudiKernel/IAlgTool.h"
00015 #include "GaudiKernel/StatusCode.h"
00016 #include "GaudiKernel/IMessageSvc.h"
00017
00018 class GaudiException ;
00019
00026 class GAUDI_API IErrorTool: virtual public IAlgTool
00027 {
00028 public:
00030 DeclareInterfaceID(IErrorTool,2,0);
00031
00032 public:
00033
00055 virtual StatusCode Error
00056 ( const std::string& msg ,
00057 const StatusCode st = StatusCode::FAILURE ,
00058 const size_t mx = 10 ) const = 0 ;
00059
00070 virtual StatusCode Warning
00071 ( const std::string& msg ,
00072 const StatusCode st = StatusCode::FAILURE ,
00073 const size_t mx = 10 ) const = 0 ;
00074
00084 virtual StatusCode Print
00085 ( const std::string& msg ,
00086 const StatusCode st = StatusCode::SUCCESS ,
00087 const MSG::Level lev = MSG::INFO ) const = 0 ;
00088
00098 virtual void Assert
00099 ( const bool ok ,
00100 const std::string& message = "" ,
00101 const StatusCode sc = StatusCode::FAILURE ) const = 0 ;
00102
00111 virtual void Exception
00112 ( const std::string & msg ,
00113 const GaudiException & exc ,
00114 const StatusCode sc = StatusCode::FAILURE ) const = 0 ;
00115
00124 virtual void Exception
00125 ( const std::string & msg ,
00126 const std::exception & exc ,
00127 const StatusCode sc = StatusCode::FAILURE ) const = 0 ;
00128
00136 virtual void Exception
00137 ( const std::string& msg = "no message" ,
00138 const StatusCode sc = StatusCode::FAILURE ) const = 0 ;
00139
00140 protected:
00141
00142
00143 virtual ~IErrorTool() ;
00144
00145 };
00146
00147
00148 #endif // GAUDIALG_IERRORTOOL_H
00149