Kaydet (Commit) f8226e87 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Pass a useful exception message.

Change-Id: Idde024a7b6896571d159c3983ef1985fa12d0c5a
üst 9c3dec47
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#include <comphelper/storagehelper.hxx> #include <comphelper/storagehelper.hxx>
#include <boost/current_function.hpp>
using namespace ::com::sun::star; using namespace ::com::sun::star;
...@@ -274,7 +275,13 @@ sal_Int32 OStorageHelper::GetXStorageFormat( ...@@ -274,7 +275,13 @@ sal_Int32 OStorageHelper::GetXStorageFormat(
else else
{ {
// the mediatype is not known // 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; return nResult;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment