diff options
author | Vincent Richard <[email protected]> | 2005-10-19 11:28:36 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-10-19 11:28:36 +0000 |
commit | 6f278de337b1f017a34211250bbb09d8c72a8a3e (patch) | |
tree | 66658f968cb7bed2b23f8ada2f3f770987ea200c /src/exception.cpp | |
parent | Charset converter. (diff) | |
download | vmime-6f278de337b1f017a34211250bbb09d8c72a8a3e.tar.gz vmime-6f278de337b1f017a34211250bbb09d8c72a8a3e.zip |
Charset converter.
Diffstat (limited to 'src/exception.cpp')
-rw-r--r-- | src/exception.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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"; } |