X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Ffactory_filter.cpp;h=d48d2dda580f2901e51cff0d60f9c4d397cf64c7;hb=cae3d2d3714e200c77e6be2fabd06a602f969f11;hp=de786ff61fd9d76f12022bdf86339495c1d41ad0;hpb=14d0e634d5061208301502d813d488d1e82f190b;p=metaproxy-moved-to-github.git diff --git a/src/factory_filter.cpp b/src/factory_filter.cpp index de786ff..d48d2dd 100644 --- a/src/factory_filter.cpp +++ b/src/factory_filter.cpp @@ -1,4 +1,4 @@ -/* $Id: factory_filter.cpp,v 1.1 2006-01-04 14:30:51 adam Exp $ +/* $Id: factory_filter.cpp,v 1.2 2006-01-05 16:39:37 adam Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -29,8 +29,8 @@ namespace yp2 { }; } -yp2::FactoryFilterException::FactoryFilterException(const std::string message) - : std::runtime_error("FilterException: " + message) +yp2::FactoryFilter::NotFound::NotFound(const std::string message) + : std::runtime_error(message) { } @@ -70,7 +70,7 @@ yp2::filter::Base* yp2::FactoryFilter::create(std::string fi) if (it == m_p->m_fcm.end()){ std::string msg = "filter type '" + fi + "' not found"; - throw yp2::FactoryFilterException(msg); + throw NotFound(msg); } // call create function return (it->second());