From 6f278de337b1f017a34211250bbb09d8c72a8a3e Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 19 Oct 2005 11:28:36 +0000 Subject: Charset converter. --- src/exception.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/exception.cpp') diff --git a/src/exception.cpp b/src/exception.cpp index 9620a310..bc599c76 100644 --- a/src/exception.cpp +++ b/src/exception.cpp @@ -105,8 +105,8 @@ const char* bad_field_type::name() const throw() { return "bad_field_type"; } // charset_conv_error::~charset_conv_error() throw() {} -charset_conv_error::charset_conv_error(const exception& other) - : exception("Charset conversion error.", other) {} +charset_conv_error::charset_conv_error(const string& what, const exception& other) + : exception(what.empty() ? "Charset conversion error." : what, other) {} exception* charset_conv_error::clone() const { return new charset_conv_error(*this); } const char* charset_conv_error::name() const throw() { return "charset_conv_error"; } -- cgit v1.2.3