diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-09-12 10:32:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-09-12 22:47:46 +0200 |
commit | 63fd3f18ac597f58622a3730d0860534c77c52b5 (patch) | |
tree | 5847302d973074b34d29e3da4d3698cdbe767db9 /framework | |
parent | remove Repeat from Basic IDE menu (diff) | |
download | core-63fd3f18ac597f58622a3730d0860534c77c52b5.tar.gz core-63fd3f18ac597f58622a3730d0860534c77c52b5.zip |
Improved "unsupported URL" exception message.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/loadenv/loadenv.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx index a746211da472..409ef40f2f2d 100644 --- a/framework/source/loadenv/loadenv.cxx +++ b/framework/source/loadenv/loadenv.cxx @@ -201,10 +201,15 @@ css::uno::Reference< css::lang::XComponent > LoadEnv::loadComponentFromURL(const 4); case LoadEnvException::ID_UNSUPPORTED_CONTENT: - throw css::lang::IllegalArgumentException( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("URL seems to be an unsupported one.")), - xLoader, - 1); + throw css::lang::IllegalArgumentException( + (rtl::OUString( + RTL_CONSTASCII_USTRINGPARAM("Unsupported URL <")) + + sURL + + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(">: \"")) + + rtl::OStringToOUString( + ex.m_sMessage, RTL_TEXTENCODING_UTF8) + + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\""))), + xLoader, 1); default: xComponent.clear(); break; |