change config_error to std::runtime_error in scale_hsla struct

This commit is contained in:
Joel Brown 2014-12-16 17:50:23 -08:00
parent f0a696264c
commit cfd48fe3cd

View file

@ -26,7 +26,6 @@
// mapnik // mapnik
#include <mapnik/config.hpp> #include <mapnik/config.hpp>
#include <mapnik/color.hpp> #include <mapnik/color.hpp>
#include <mapnik/config_error.hpp>
#include <mapnik/util/variant.hpp> #include <mapnik/util/variant.hpp>
// stl // stl
@ -34,6 +33,7 @@
#include <ostream> #include <ostream>
#include <iterator> // for std::back_insert_iterator #include <iterator> // for std::back_insert_iterator
#include <functional> // std::ref #include <functional> // std::ref
#include <exception>
namespace mapnik { namespace filter { namespace mapnik { namespace filter {
@ -101,7 +101,7 @@ struct scale_hsla : image_filter_base
a0 < 0 || a0 > 1 || a0 < 0 || a0 > 1 ||
a1 < 0 || a1 > 1) a1 < 0 || a1 > 1)
{ {
throw config_error("scale-hsla values must be between 0 and 1"); throw std::runtime_error("scale-hsla values must be between 0 and 1");
} }
} }
inline bool is_identity() const { inline bool is_identity() const {