00001 //-------------------------------------------------------------------------- 00002 // File and Version Information: 00003 // $Id: Exceptions.cpp 2466 2011-10-04 23:54:44Z salnikov@SLAC.STANFORD.EDU $ 00004 // 00005 // Description: 00006 // Class Exceptions... 00007 // 00008 // Author List: 00009 // Andy Salnikov 00010 // 00011 //------------------------------------------------------------------------ 00012 00013 //----------------------- 00014 // This Class's Header -- 00015 //----------------------- 00016 #include "PSCalib/Exceptions.h" 00017 00018 //----------------- 00019 // C/C++ Headers -- 00020 //----------------- 00021 00022 //------------------------------- 00023 // Collaborating Class Headers -- 00024 //------------------------------- 00025 00026 //----------------------------------------------------------------------- 00027 // Local Macros, Typedefs, Structures, Unions and Forward Declarations -- 00028 //----------------------------------------------------------------------- 00029 00030 // ---------------------------------------- 00031 // -- Public Function Member Definitions -- 00032 // ---------------------------------------- 00033 00034 namespace PSCalib { 00035 00036 Exception::Exception( const ErrSvc::Context& ctx, const std::string& what ) 00037 : ErrSvc::Issue( ctx, "PSCalib::Exception: " + what ) 00038 { 00039 } 00040 00041 NotDetInfoError::NotDetInfoError ( const ErrSvc::Context& ctx ) 00042 : Exception(ctx, "Source address is not DetInfo address") 00043 { 00044 } 00045 00046 } // namespace PSCalib