00001 // $Id: PVolumeException.h,v 1.1 2006/04/20 14:39:56 ranjard Exp $ 00002 #ifndef DETDESC_PVOLUMEEXCEPTION_H 00003 #define DETDESC_PVOLUMEEXCEPTION_H 1 00005 #include "GaudiKernel/GaudiException.h" 00007 class PVolume; 00008 00010 class PVolumeException : public GaudiException 00011 { 00013 public: 00015 PVolumeException( const std::string& name , 00016 const PVolume* pvolume = 0 ) ; 00018 PVolumeException( const std::string& name , 00019 const GaudiException& Exception , 00020 const PVolume* pvolume = 0 ); 00022 virtual ~PVolumeException() throw(); 00024 virtual std::ostream& printOut ( std::ostream& os = std::cerr ) const ; 00025 virtual MsgStream& printOut ( MsgStream& os ) const ; 00026 virtual GaudiException* clone () const ; 00028 private: 00030 const PVolume* m_pve_pvolume ; // "author" of exceptiom 00032 }; 00034 00035 00036 #endif // DETDESC_PVOLUMEEXCEPTION_H 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047