tdf#42982 Improve UNO API error reporting
Change-Id: I35b815e45debc479d20c956fd07a188d0251853d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181293 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
This commit is contained in:
committed by
Hossein
parent
fdd666e566
commit
12d487285b
@@ -50,7 +50,9 @@ embed::VisualRepresentation OleEmbeddedObject::GetVisualRepresentationInNativeFo
|
||||
// TODO: detect the format in the future for now use workaround
|
||||
uno::Reference< io::XInputStream > xInStream = xCachedVisRepr->getInputStream();
|
||||
if ( !xInStream.is() )
|
||||
throw uno::RuntimeException();
|
||||
throw uno::RuntimeException(
|
||||
u"Failed to retrieve input stream from cached visual representation. "_ustr
|
||||
);
|
||||
uno::Reference< io::XSeekable > xSeekable( xCachedVisRepr, uno::UNO_QUERY_THROW );
|
||||
|
||||
uno::Sequence< sal_Int8 > aSeq( 2 );
|
||||
|
||||
Reference in New Issue
Block a user