diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-12-01 13:32:05 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-12-11 22:31:34 +0100 |
commit | 68420e81edb7275cc66bae110d7279b24a8913a6 (patch) | |
tree | b8a0ed4fc3991b934b05f300f782ed87d6e06cf7 /sax | |
parent | 7b5184a8a19fe080f4b897e62bed99460b64002a (diff) |
Add message to exception
Change-Id: I0e7cf850b51343e4afc1ea0a0409ad2c4e596435
(cherry picked from commit 373daf55d98ba706d3dea131e755da3a00eb259f)
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index d0d6979cd749..fc1f5a90ceb8 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -661,7 +661,8 @@ sal_Int32 FastSaxParserImpl::GetTokenWithPrefix( const xmlChar* pPrefix, int nPr } if( !nNamespace ) - throw SAXException(); // prefix that has no defined namespace url + throw SAXException("No namespace defined for " + OUString(XML_CAST(pPrefix), + nPrefixLen, RTL_TEXTENCODING_UTF8), Reference< XInterface >(), Any()); } if( nNamespaceToken != FastToken::DONTKNOW ) @@ -694,7 +695,8 @@ OUString FastSaxParserImpl::GetNamespaceURL( const OString& rPrefix ) throw (SAX return rEntity.maNamespaceDefines[nNamespace]->maNamespaceURL; } - throw SAXException(); // prefix that has no defined namespace url + throw SAXException("No namespace defined for " + OUString::fromUtf8(rPrefix), + Reference< XInterface >(), Any()); } sal_Int32 FastSaxParserImpl::GetTokenWithContextNamespace( sal_Int32 nNamespaceToken, const xmlChar* pName, int nNameLen ) |