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 committed by Dane Springmeyer
parent fe58aabe55
commit 52d4b0edfd

View file

@ -26,7 +26,6 @@
// mapnik
#include <mapnik/config.hpp>
#include <mapnik/color.hpp>
#include <mapnik/config_error.hpp>
#include <mapnik/util/variant.hpp>
// stl
@ -34,6 +33,7 @@
#include <ostream>
#include <iterator> // for std::back_insert_iterator
#include <functional> // std::ref
#include <exception>
namespace mapnik { namespace filter {
@ -101,7 +101,7 @@ struct scale_hsla : image_filter_base
a0 < 0 || a0 > 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 {