summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-12-01 13:32:05 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-12-01 15:14:16 +0100
commit373daf55d98ba706d3dea131e755da3a00eb259f (patch)
tree7f13993b224bf26e87b9bf9b9b96ede87e7765bc /sax
parentaa9d55fe144f67c22cc55ab708eb7377402b484c (diff)
Add message to exception
Change-Id: I0e7cf850b51343e4afc1ea0a0409ad2c4e596435
Diffstat (limited to 'sax')
-rw-r--r--sax/source/fastparser/fastparser.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index bf3aa01456d0..7e3178495fcd 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -655,7 +655,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 )
@@ -688,7 +689,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 )