diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-01-18 15:05:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-20 09:03:45 +0100 |
commit | bca1b74c0753f2305a5e234293df88aa3e1d9af0 (patch) | |
tree | 16732572c6e15dbd5a2f4e50a2451efc836e3a2d /basctl/source/basicide/basicrenderable.cxx | |
parent | 35a564864e6ce08abfa4924e1ea9314982e7957c (diff) |
improve some IllegalArgumentException messages
Change-Id: Id88f2a82bf2651e8b5895aa330f32b71ff5b0e48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109546
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl/source/basicide/basicrenderable.cxx')
-rw-r--r-- | basctl/source/basicide/basicrenderable.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/basicide/basicrenderable.cxx b/basctl/source/basicide/basicrenderable.cxx index 8e4bab711ce8..12bb90610877 100644 --- a/basctl/source/basicide/basicrenderable.cxx +++ b/basctl/source/basicide/basicrenderable.cxx @@ -120,7 +120,7 @@ sal_Int32 SAL_CALL Renderable::getRendererCount ( { VclPtr<Printer> pPrinter = getPrinter(); if (!pPrinter) - throw lang::IllegalArgumentException(); + throw lang::IllegalArgumentException("no printer", static_cast<cppu::OWeakObject*>(this), -1); nCount = mpWindow->countPages( pPrinter ); @@ -192,7 +192,7 @@ void SAL_CALL Renderable::render ( VclPtr<Printer> pPrinter = getPrinter(); if (!pPrinter) - throw lang::IllegalArgumentException(); + throw lang::IllegalArgumentException("no printer", static_cast<cppu::OWeakObject*>(this), -1); sal_Int64 nContent = getIntValue( "PrintContent", -1 ); if( nContent == 1 ) |