summaryrefslogtreecommitdiff
path: root/embeddedobj
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 /embeddedobj
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 'embeddedobj')
-rw-r--r--embeddedobj/source/commonembedding/embedobj.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/embeddedobj/source/commonembedding/embedobj.cxx b/embeddedobj/source/commonembedding/embedobj.cxx
index 669ba884b055..dcba248ca4f7 100644
--- a/embeddedobj/source/commonembedding/embedobj.cxx
+++ b/embeddedobj/source/commonembedding/embedobj.cxx
@@ -209,7 +209,7 @@ void OCommonEmbeddedObject::SwitchStateTo_Impl( sal_Int32 nNextState )
else
{
SAL_WARN( "embeddedobj.common", "Unacceptable state switch!" );
- throw uno::RuntimeException(); // TODO
+ throw uno::RuntimeException("invalid next state, only RUNNING state allowed"); // TODO
}
}
else if ( m_nObjectState == embed::EmbedStates::RUNNING )
@@ -271,7 +271,7 @@ void OCommonEmbeddedObject::SwitchStateTo_Impl( sal_Int32 nNextState )
else
{
SAL_WARN( "embeddedobj.common", "Unacceptable state switch!" );
- throw uno::RuntimeException(); // TODO
+ throw uno::RuntimeException("invalid next state,only LOADED/INPLACE_ACTIVE/ACTIVE allowed"); // TODO
}
}
}
@@ -339,7 +339,7 @@ void OCommonEmbeddedObject::SwitchStateTo_Impl( sal_Int32 nNextState )
else
{
SAL_WARN( "embeddedobj.common", "Unacceptable state switch!" );
- throw uno::RuntimeException(); // TODO
+ throw uno::RuntimeException("invalid next state,only RUNNING/UI_ACTIVE allowed"); // TODO
}
}
else if ( m_nObjectState == embed::EmbedStates::ACTIVE )
@@ -352,7 +352,7 @@ void OCommonEmbeddedObject::SwitchStateTo_Impl( sal_Int32 nNextState )
else
{
SAL_WARN( "embeddedobj.common", "Unacceptable state switch!" );
- throw uno::RuntimeException(); // TODO
+ throw uno::RuntimeException("invalid next state, only RUNNING state allowed"); // TODO
}
}
else if ( m_nObjectState == embed::EmbedStates::UI_ACTIVE )