00001 // $Id: DetectorElementException.h,v 1.5 2003/04/25 08:52:23 sponce Exp $ 00002 #ifndef DETDESC_DetectorElementEXCEPTION_H 00003 #define DETDESC_DetectorElementEXCEPTION_H 1 00005 #include "GaudiKernel/GaudiException.h" 00006 // 00007 class DetectorElement; 00008 class MsgStream; 00009 00019 class DetectorElementException : public GaudiException 00020 { 00022 public: 00024 DetectorElementException( const std::string & name , 00025 const DetectorElement * DetectorElement = 0 , 00026 const StatusCode & sc = StatusCode::FAILURE ); 00028 DetectorElementException( const std::string & name , 00029 const GaudiException & Exception , 00030 const DetectorElement * DetectorElement = 0 , 00031 const StatusCode & sc = StatusCode::FAILURE ); 00033 virtual ~DetectorElementException() throw(); 00035 virtual std::ostream& printOut ( std::ostream& os = std::cerr ) const ; 00037 virtual MsgStream& printOut ( MsgStream& ) const ; 00039 virtual GaudiException* clone () const ; 00041 private: 00043 const DetectorElement* m_dee_DetectorElement ; 00045 }; 00047 00048 #endif // DETDESC_DetectorElementEXCEPTION_H 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060