summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql/pq_xuser.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-25 21:31:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-26 18:22:20 +0100
commit5e21a413c788f839a66d9e4c14e745ed18058db8 (patch)
treed4451246461346a425ad6f796e08bf1514cdd942 /connectivity/source/drivers/postgresql/pq_xuser.cxx
parent6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff)
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xuser.cxx')
-rw-r--r--connectivity/source/drivers/postgresql/pq_xuser.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xuser.cxx b/connectivity/source/drivers/postgresql/pq_xuser.cxx
index 01ebaea86335..a446267073fa 100644
--- a/connectivity/source/drivers/postgresql/pq_xuser.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xuser.cxx
@@ -97,7 +97,7 @@ User::User( const ::rtl::Reference< RefCountedMutex > & refMutex,
* getStatics().refl.user.pProps )
{}
-Reference< XPropertySet > User::createDataDescriptor( ) throw (RuntimeException)
+Reference< XPropertySet > User::createDataDescriptor( ) throw (RuntimeException, std::exception)
{
UserDescriptor * pUser = new UserDescriptor( m_refMutex, m_conn, m_pSettings );
pUser->copyValuesFrom( this );
@@ -106,7 +106,7 @@ Reference< XPropertySet > User::createDataDescriptor( ) throw (RuntimeException
}
-Sequence<Type > User::getTypes() throw( RuntimeException )
+Sequence<Type > User::getTypes() throw( RuntimeException, std::exception )
{
static cppu::OTypeCollection *pCollection;
if( ! pCollection )
@@ -123,12 +123,12 @@ Sequence<Type > User::getTypes() throw( RuntimeException )
return pCollection->getTypes();
}
-Sequence< sal_Int8> User::getImplementationId() throw( RuntimeException )
+Sequence< sal_Int8> User::getImplementationId() throw( RuntimeException, std::exception )
{
return getStatics().refl.user.implementationId;
}
-Any User::queryInterface( const Type & reqType ) throw (RuntimeException)
+Any User::queryInterface( const Type & reqType ) throw (RuntimeException, std::exception)
{
Any ret;
@@ -143,7 +143,7 @@ Any User::queryInterface( const Type & reqType ) throw (RuntimeException)
void User::changePassword(
const OUString& oldPassword, const OUString& newPassword )
- throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
+ throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception)
{
(void) oldPassword;
OUStringBuffer buf(128);
@@ -157,7 +157,7 @@ void User::changePassword(
}
sal_Int32 User::getPrivileges( const OUString& objName, sal_Int32 objType )
- throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
+ throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception)
{
sal_Int32 ret = 0xffffffff;
if( isLog( m_pSettings, LogLevel::INFO ) )
@@ -175,7 +175,7 @@ sal_Int32 User::getPrivileges( const OUString& objName, sal_Int32 objType )
}
sal_Int32 User::getGrantablePrivileges( const OUString& objName, sal_Int32 objType )
- throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
+ throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception)
{
(void) objName; (void) objType;
// all privileges
@@ -183,7 +183,7 @@ sal_Int32 User::getGrantablePrivileges( const OUString& objName, sal_Int32 objTy
}
void User::grantPrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges )
- throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
+ throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception)
{
(void) objName; (void) objType; (void) objPrivileges;
throw com::sun::star::sdbc::SQLException("pq_driver: privilege change not implemented yet",
@@ -191,7 +191,7 @@ void User::grantPrivileges( const OUString& objName, sal_Int32 objType, sal_Int3
}
void User::revokePrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges )
- throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
+ throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception)
{
(void) objName; (void) objType; (void) objPrivileges;
throw com::sun::star::sdbc::SQLException("pq_driver: privilege change not implemented yet",
@@ -212,7 +212,7 @@ UserDescriptor::UserDescriptor(
* getStatics().refl.userDescriptor.pProps )
{}
-Reference< XPropertySet > UserDescriptor::createDataDescriptor( ) throw (RuntimeException)
+Reference< XPropertySet > UserDescriptor::createDataDescriptor( ) throw (RuntimeException, std::exception)
{
UserDescriptor * pUser = new UserDescriptor( m_refMutex, m_conn, m_pSettings );
pUser->copyValuesFrom( this );