summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-19 17:50:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-19 18:03:13 +0100
commit491f9a6ce4ab670145833dbcdd2b2ae5fe824c68 (patch)
tree677d54ba20aacb890d24f42ab8e99820d3de7a0b /stoc
parentebcc8707a019831907c340ce3bcbc9557136eed0 (diff)
New loplugin:dynexcspec: Add @throws documentation, stoc
Change-Id: I8c7d5088aed055c3734165343189233b3124c9be
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/corereflection/base.hxx5
-rw-r--r--stoc/source/corereflection/crefl.cxx2
-rw-r--r--stoc/source/invocation/invocation.cxx2
-rw-r--r--stoc/source/invocation_adapterfactory/iafactory.cxx2
-rw-r--r--stoc/source/javaloader/javaloader.cxx2
-rw-r--r--stoc/source/javavm/javavm.cxx5
-rw-r--r--stoc/source/proxy_factory/proxyfac.cxx2
-rw-r--r--stoc/source/typeconv/convert.cxx2
-rw-r--r--stoc/source/uriproc/UriReference.hxx17
9 files changed, 34 insertions, 5 deletions
diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx
index 15a95309c8b0..79d5592328e7 100644
--- a/stoc/source/corereflection/base.hxx
+++ b/stoc/source/corereflection/base.hxx
@@ -97,8 +97,11 @@ class IdlReflectionServiceImpl
inline css::uno::Reference< css::reflection::XIdlClass > constructClass( typelib_TypeDescription * pTypeDescr );
public:
+ /// @throws css::uno::RuntimeException
const css::uno::Mapping & getCpp2Uno() throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
const css::uno::Mapping & getUno2Cpp() throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
uno_Interface * mapToUno( const css::uno::Any & rObj, typelib_InterfaceTypeDescription * pTo ) throw(css::uno::RuntimeException);
// ctor/ dtor
@@ -130,7 +133,9 @@ public:
virtual css::uno::Any SAL_CALL getByHierarchicalName( const OUString & rName ) throw(css::container::NoSuchElementException, css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL hasByHierarchicalName( const OUString & rName ) throw(css::uno::RuntimeException, std::exception) override;
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::reflection::XIdlClass > forType( typelib_TypeDescription * pTypeDescr ) throw(css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::reflection::XIdlClass > forType( typelib_TypeDescriptionReference * pRef ) throw(css::uno::RuntimeException);
};
diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx
index 54a3a452faee..3d1793e0363f 100644
--- a/stoc/source/corereflection/crefl.cxx
+++ b/stoc/source/corereflection/crefl.cxx
@@ -406,7 +406,7 @@ uno_Interface * IdlReflectionServiceImpl::mapToUno(
static_cast<XWeak *>(static_cast<OWeakObject *>(this)) );
}
-
+/// @throws css::uno::Exception
Reference< XInterface > SAL_CALL IdlReflectionServiceImpl_create(
const Reference< XComponentContext > & xContext )
throw(css::uno::Exception)
diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx
index 9f965dcfef2a..933ed5b556f3 100644
--- a/stoc/source/invocation/invocation.cxx
+++ b/stoc/source/invocation/invocation.cxx
@@ -1139,7 +1139,7 @@ Reference<XInterface> InvocationService::createInstanceWithArguments(
}
}
-
+/// @throws RuntimeException
Reference<XInterface> SAL_CALL InvocationService_CreateInstance( const Reference<XComponentContext> & xCtx )
throw( RuntimeException )
{
diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx b/stoc/source/invocation_adapterfactory/iafactory.cxx
index 055ed2f415ae..d9369716762d 100644
--- a/stoc/source/invocation_adapterfactory/iafactory.cxx
+++ b/stoc/source/invocation_adapterfactory/iafactory.cxx
@@ -894,7 +894,7 @@ Sequence< OUString > FactoryImpl::getSupportedServiceNames()
return invadp_getSupportedServiceNames();
}
-
+/// @throws Exception
static Reference< XInterface > SAL_CALL FactoryImpl_create(
const Reference< XComponentContext > & xContext )
throw (Exception)
diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx
index f7ecaadf4588..9a093853c05e 100644
--- a/stoc/source/javaloader/javaloader.cxx
+++ b/stoc/source/javaloader/javaloader.cxx
@@ -100,6 +100,7 @@ class JavaComponentLoader : public WeakImplHelper<XImplementationLoader, XServic
public:
+ /// @throws RuntimeException
explicit JavaComponentLoader(const css::uno::Reference<XComponentContext> & xCtx)
throw(RuntimeException);
@@ -356,6 +357,7 @@ static Mutex & getInitMutex()
return *pMutex;
}
+/// @throws Exception
css::uno::Reference<XInterface> SAL_CALL JavaComponentLoader_CreateInstance(const css::uno::Reference<XComponentContext> & xCtx) throw(Exception)
{
css::uno::Reference<XInterface> xRet;
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx
index b7bc59f101bc..907fd12bd7ea 100644
--- a/stoc/source/javavm/javavm.cxx
+++ b/stoc/source/javavm/javavm.cxx
@@ -265,6 +265,7 @@ bool askForRetry(css::uno::Any const & rException)
// Only gets the properties if the "Proxy Server" entry in the option dialog is
// set to manual (i.e. not to none)
+/// @throws css::uno::Exception
void getINetPropsFromConfig(stoc_javavm::JVM * pjvm,
const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
const css::uno::Reference<css::uno::XComponentContext> &xCtx ) throw (css::uno::Exception)
@@ -346,6 +347,7 @@ void getINetPropsFromConfig(stoc_javavm::JVM * pjvm,
xConfRegistry_simple->close();
}
+/// @throws css::uno::Exception
void getDefaultLocaleFromConfig(
stoc_javavm::JVM * pjvm,
const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
@@ -449,7 +451,7 @@ void getDefaultLocaleFromConfig(
xConfRegistry_simple->close();
}
-
+/// @throws css::uno::Exception
void getJavaPropsFromSafetySettings(
stoc_javavm::JVM * pjvm,
const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
@@ -536,6 +538,7 @@ void setTimeZone(stoc_javavm::JVM * pjvm) throw() {
pjvm->pushProp("user.timezone=ECT");
}
+/// @throws css::uno::Exception
void initVMConfiguration(
stoc_javavm::JVM * pjvm,
const css::uno::Reference<css::lang::XMultiComponentFactory> & xSMgr,
diff --git a/stoc/source/proxy_factory/proxyfac.cxx b/stoc/source/proxy_factory/proxyfac.cxx
index b60af0b4d878..a701e7b02478 100644
--- a/stoc/source/proxy_factory/proxyfac.cxx
+++ b/stoc/source/proxy_factory/proxyfac.cxx
@@ -438,7 +438,7 @@ Sequence< OUString > FactoryImpl::getSupportedServiceNames()
return proxyfac_getSupportedServiceNames();
}
-
+/// @throws Exception
Reference< XInterface > SAL_CALL proxyfac_create(
SAL_UNUSED_PARAMETER Reference< XComponentContext > const & )
throw (Exception)
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx
index 59849df3ae4d..83f99ada0a98 100644
--- a/stoc/source/typeconv/convert.cxx
+++ b/stoc/source/typeconv/convert.cxx
@@ -243,9 +243,11 @@ static bool getHyperValue( sal_Int64 & rnVal, const OUString & rStr )
class TypeConverter_Impl : public WeakImplHelper< XTypeConverter, XServiceInfo >
{
// ...misc helpers...
+ /// @throws CannotConvertException
static sal_Int64 toHyper(
const Any& rAny, sal_Int64 min, sal_uInt64 max = SAL_UINT64_MAX )
throw( CannotConvertException );
+ /// @throws CannotConvertException
static double toDouble( const Any& rAny, double min = -DBL_MAX, double max = DBL_MAX )
throw( CannotConvertException );
diff --git a/stoc/source/uriproc/UriReference.hxx b/stoc/source/uriproc/UriReference.hxx
index d134334619c6..e052eee03f52 100644
--- a/stoc/source/uriproc/UriReference.hxx
+++ b/stoc/source/uriproc/UriReference.hxx
@@ -37,43 +37,60 @@ public:
~UriReference();
+ /// @throws css::uno::RuntimeException
OUString getUriReference()
throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
bool isAbsolute() throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
const OUString& getScheme() throw (css::uno::RuntimeException) { return m_scheme;}
+ /// @throws css::uno::RuntimeException
OUString getSchemeSpecificPart()
throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
bool isHierarchical() throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
bool hasAuthority() throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
OUString getAuthority() throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
OUString getPath() throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
bool hasRelativePath() throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
sal_Int32 getPathSegmentCount()
throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
OUString getPathSegment(sal_Int32 index)
throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
bool hasQuery() throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
OUString getQuery() throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
bool hasFragment() throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
OUString getFragment() throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
void setFragment(OUString const & fragment)
throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
void clearFragment() throw (css::uno::RuntimeException);
osl::Mutex m_mutex;