summaryrefslogtreecommitdiffstats
path: root/comphelper/source
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-07-09 12:04:35 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-07-09 12:15:40 -0400
commitf8226e87b446d96a3803df46d9b786c233d1e1f5 (patch)
tree3a9446b74ece4c7b552da3cb0e1a166d77f3e664 /comphelper/source
parentRelated: #i125215# MarkManager: remove unnecessary mark container (diff)
downloadcore-f8226e87b446d96a3803df46d9b786c233d1e1f5.tar.gz
core-f8226e87b446d96a3803df46d9b786c233d1e1f5.zip
Pass a useful exception message.
Change-Id: Idde024a7b6896571d159c3983ef1985fa12d0c5a
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/misc/storagehelper.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx
index 0c60a7c54bd1..51ee8c51762b 100644
--- a/comphelper/source/misc/storagehelper.cxx
+++ b/comphelper/source/misc/storagehelper.cxx
@@ -45,6 +45,7 @@
#include <comphelper/storagehelper.hxx>
+#include <boost/current_function.hpp>
using namespace ::com::sun::star;
@@ -274,7 +275,13 @@ sal_Int32 OStorageHelper::GetXStorageFormat(
else
{
// the mediatype is not known
- throw beans::IllegalTypeException();
+ OUString aMsg(BOOST_CURRENT_FUNCTION);
+ aMsg += ":";
+ aMsg += OUString::number(__LINE__);
+ aMsg += ": unknown media type '";
+ aMsg += aMediaType;
+ aMsg += "'";
+ throw beans::IllegalTypeException(aMsg);
}
return nResult;