tdf#42982 Make UNO error reporting more descriptive
Change-Id: I1f1c8285a1d41a9c9694a54c0bdfb20c6f0b27ed Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141512 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
parent
1e8aaf4f04
commit
71aaa2eaa2
@ -154,7 +154,7 @@ namespace dxcanvas
|
||||
// getMemoryLayout
|
||||
&aBmpData ) )
|
||||
{
|
||||
throw uno::RuntimeException();
|
||||
throw uno::RuntimeException("Internal error while writing BitmapData into Bitmap");
|
||||
}
|
||||
|
||||
// commit data to bitmap
|
||||
@ -177,7 +177,7 @@ namespace dxcanvas
|
||||
if( Gdiplus::Ok != mpBitmap->SetPixel( pos.X, pos.Y,
|
||||
Gdiplus::Color( tools::sequenceToArgb( color ))))
|
||||
{
|
||||
throw uno::RuntimeException();
|
||||
throw uno::RuntimeException("SetPixel called with invalid x,y points or color");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user