00001 /* 00002 * HippoPlot DataRepException class implementation 00003 * 00004 * Copyright (C) 2002, 2003 The Board of Trustees of The Leland Stanford 00005 * Junior University. All Rights Reserved. 00006 * 00007 * $Id: DataRepException.cxx,v 1.3 2003/03/02 22:44:09 pfkeb Exp $ 00008 * 00009 */ 00010 00011 #include "DataRepException.h" 00012 00013 DataRepException:: 00014 DataRepException ( const std::string & type ) 00015 { 00016 m_type = type; 00017 } 00018 00019 DataRepException:: 00020 DataRepException ( const DataRepException & e ) 00021 { 00022 m_type = e.m_type; 00023 } 00024 00025 DataRepException:: 00026 ~DataRepException () throw () 00027 { 00028 } 00029 00030 const char * 00031 DataRepException:: 00032 what () const throw () 00033 { 00034 std::string retval ( "No such label: `" ); 00035 retval += m_type; 00036 retval += "' for ntuple column"; 00037 00038 return retval.c_str(); 00039 }