summaryrefslogtreecommitdiff
path: root/chart2/source/tools
diff options
context:
space:
mode:
authorhomeboy445 <akshitsan13@gmail.com>2020-12-23 19:46:09 +0530
committerMichael Stahl <michael.stahl@allotropia.de>2021-01-07 16:03:34 +0100
commit7bd5c31472804624d740d8c831d3b043f2d3a0be (patch)
treedd8f543ffd4d73ab7806653456610b37c8839cd8 /chart2/source/tools
parentb8d9334b9d4cc03a9b7d1e570a35e0ac6ca42338 (diff)
tdf#42982 Improved UNO API error reporting
Change-Id: I450ea0b1a19381c47370633d124c2ba906415987 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108356 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> Tested-by: Jenkins
Diffstat (limited to 'chart2/source/tools')
-rw-r--r--chart2/source/tools/Scaling.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/tools/Scaling.cxx b/chart2/source/tools/Scaling.cxx
index 212eadba54ee..b61886c643e8 100644
--- a/chart2/source/tools/Scaling.cxx
+++ b/chart2/source/tools/Scaling.cxx
@@ -167,7 +167,7 @@ uno::Reference< XScaling > SAL_CALL
{
// ToDo: ApproxEqual ?
if( m_fSlope == 0 )
- throw uno::RuntimeException();
+ throw uno::RuntimeException("Divide by zero exception");
return new LinearScaling( 1.0 / m_fSlope, m_fOffset / m_fSlope );
}
@@ -218,7 +218,7 @@ uno::Reference< XScaling > SAL_CALL
{
// ToDo: ApproxEqual ?
if( m_fExponent == 0 )
- throw uno::RuntimeException();
+ throw uno::RuntimeException("Divide by zero exception");
return new PowerScaling( 1.0 / m_fExponent );
}