00001 00014 #include "DataRepException.h" 00015 00016 namespace hippodraw { 00017 00018 DataRepException:: 00019 DataRepException ( const std::string & type ) 00020 { 00021 m_type = type; 00022 } 00023 00024 DataRepException:: 00025 DataRepException ( const DataRepException & e ) 00026 : exception ( ) 00027 { 00028 m_type = e.m_type; 00029 } 00030 00031 DataRepException:: 00032 ~DataRepException () throw () 00033 { 00034 } 00035 00036 const char * 00037 DataRepException:: 00038 what () const throw () 00039 { 00040 std::string retval ( "No such label: `" ); 00041 retval += m_type; 00042 retval += "' for ntuple column"; 00043 00044 return retval.c_str(); 00045 } 00046 00047 } // namespace hippodraw 00048