diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 17:54:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 18:03:17 +0100 |
commit | de70ad0b0c65f4ae5dbdb156e1b9aa1d22855b2c (patch) | |
tree | e0d5e17bc230ce381c7206fb0870434252ba8cdf /package | |
parent | f486e4a428be124627d89ce9f9ccf18eca9deb75 (diff) |
New loplugin:dynexcspec: Add @throws documentation, package
Change-Id: I5d30cc2483452ba140cdce341677e872bffce6d1
Diffstat (limited to 'package')
-rw-r--r-- | package/inc/ByteChucker.hxx | 6 | ||||
-rw-r--r-- | package/inc/ByteGrabber.hxx | 11 | ||||
-rw-r--r-- | package/inc/CRC32.hxx | 5 | ||||
-rw-r--r-- | package/inc/ZipOutputStream.hxx | 14 | ||||
-rw-r--r-- | package/inc/ZipPackage.hxx | 1 | ||||
-rw-r--r-- | package/inc/ZipPackageFolder.hxx | 5 | ||||
-rw-r--r-- | package/inc/ZipPackageStream.hxx | 1 | ||||
-rw-r--r-- | package/source/manifest/ManifestImport.hxx | 5 | ||||
-rw-r--r-- | package/source/xstor/owriteablestream.hxx | 1 | ||||
-rw-r--r-- | package/source/xstor/xstorage.hxx | 9 | ||||
-rw-r--r-- | package/source/zipapi/MemoryByteGrabber.hxx | 4 |
11 files changed, 62 insertions, 0 deletions
diff --git a/package/inc/ByteChucker.hxx b/package/inc/ByteChucker.hxx index a70aedcdfc8b..a06800524a3b 100644 --- a/package/inc/ByteChucker.hxx +++ b/package/inc/ByteChucker.hxx @@ -42,9 +42,15 @@ public: ByteChucker (css::uno::Reference<css::io::XOutputStream> const & xOstream); ~ByteChucker(); + /// @throws css::io::NotConnectedException + /// @throws css::io::BufferSizeExceededException + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException void WriteBytes( const css::uno::Sequence< sal_Int8 >& aData ) throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException); + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException sal_Int64 GetPosition() throw(css::io::IOException, css::uno::RuntimeException); diff --git a/package/inc/ByteGrabber.hxx b/package/inc/ByteGrabber.hxx index bfdb8e35e9a7..ec27a6aee5bc 100644 --- a/package/inc/ByteGrabber.hxx +++ b/package/inc/ByteGrabber.hxx @@ -48,13 +48,24 @@ public: void setInputStream (const css::uno::Reference < css::io::XInputStream >& xNewStream); // XInputStream + /// @throws css::io::NotConnectedException + /// @throws css::io::BufferSizeExceededException + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException sal_Int32 SAL_CALL readBytes( css::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException); // XSeekable + /// @throws css::lang::IllegalArgumentException + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException void SAL_CALL seek( sal_Int64 location ) throw(css::lang::IllegalArgumentException, css::io::IOException, css::uno::RuntimeException); + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException sal_Int64 SAL_CALL getPosition( ) throw(css::io::IOException, css::uno::RuntimeException); + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException sal_Int64 SAL_CALL getLength( ) throw(css::io::IOException, css::uno::RuntimeException); diff --git a/package/inc/CRC32.hxx b/package/inc/CRC32.hxx index 2f2af5a9cbf7..b70c621c859a 100644 --- a/package/inc/CRC32.hxx +++ b/package/inc/CRC32.hxx @@ -33,14 +33,19 @@ public: CRC32(); ~CRC32(); + /// @throws css::uno::RuntimeException sal_Int64 SAL_CALL updateStream (css::uno::Reference < css::io::XInputStream > & xStream) throw(css::uno::RuntimeException); + /// @throws css::uno::RuntimeException void SAL_CALL updateSegment(const css::uno::Sequence< sal_Int8 > &b, sal_Int32 len) throw(css::uno::RuntimeException); + /// @throws css::uno::RuntimeException void SAL_CALL update(const css::uno::Sequence< sal_Int8 > &b) throw(css::uno::RuntimeException); + /// @throws css::uno::RuntimeException sal_Int32 SAL_CALL getValue() throw(css::uno::RuntimeException); + /// @throws css::uno::RuntimeException void SAL_CALL reset() throw(css::uno::RuntimeException); }; diff --git a/package/inc/ZipOutputStream.hxx b/package/inc/ZipOutputStream.hxx index 79fb84d47926..67adc1a7222d 100644 --- a/package/inc/ZipOutputStream.hxx +++ b/package/inc/ZipOutputStream.hxx @@ -49,13 +49,21 @@ public: void addDeflatingThread( ZipOutputEntry *pEntry, comphelper::ThreadTask *pThreadTask ); + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException void writeLOC( ZipEntry *pEntry, bool bEncrypt = false ) throw(css::io::IOException, css::uno::RuntimeException); + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException void rawWrite( const css::uno::Sequence< sal_Int8 >& rBuffer ) throw(css::io::IOException, css::uno::RuntimeException); + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException void rawCloseEntry( bool bEncrypt = false ) throw(css::io::IOException, css::uno::RuntimeException); + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException void finish() throw(css::io::IOException, css::uno::RuntimeException, std::exception); const css::uno::Reference< css::io::XOutputStream >& getStream(); @@ -64,10 +72,16 @@ public: static void setEntry( ZipEntry *pEntry ); private: + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException void writeEND(sal_uInt32 nOffset, sal_uInt32 nLength) throw(css::io::IOException, css::uno::RuntimeException); + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException void writeCEN( const ZipEntry &rEntry ) throw(css::io::IOException, css::uno::RuntimeException); + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException void writeEXT( const ZipEntry &rEntry ) throw(css::io::IOException, css::uno::RuntimeException); diff --git a/package/inc/ZipPackage.hxx b/package/inc/ZipPackage.hxx index 6a3ac01a88bd..7dc01a9965cc 100644 --- a/package/inc/ZipPackage.hxx +++ b/package/inc/ZipPackage.hxx @@ -154,6 +154,7 @@ public: // XUnoTunnel virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) throw(css::uno::RuntimeException, std::exception) override; + /// @throws css::uno::RuntimeException static css::uno::Sequence < sal_Int8 > getUnoTunnelImplementationId() throw(css::uno::RuntimeException); // XPropertySet diff --git a/package/inc/ZipPackageFolder.hxx b/package/inc/ZipPackageFolder.hxx index 1b0cee329853..603fc3b94c22 100644 --- a/package/inc/ZipPackageFolder.hxx +++ b/package/inc/ZipPackageFolder.hxx @@ -56,6 +56,10 @@ public: void setChildStreamsTypeByExtension( const css::beans::StringPair& aPair ); + /// @throws css::lang::IllegalArgumentException + /// @throws css::container::ElementExistException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException void doInsertByName ( ZipPackageEntry *pEntry, bool bSetParent ) throw(css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException, css::uno::RuntimeException); @@ -74,6 +78,7 @@ public: const rtlRandomPool &rRandomPool ) override; // Recursive functions + /// @throws css::uno::RuntimeException void saveContents( const OUString &rPath, std::vector < css::uno::Sequence < css::beans::PropertyValue > > &rManList, diff --git a/package/inc/ZipPackageStream.hxx b/package/inc/ZipPackageStream.hxx index 605432ed169d..806e4089d2c6 100644 --- a/package/inc/ZipPackageStream.hxx +++ b/package/inc/ZipPackageStream.hxx @@ -73,6 +73,7 @@ private: /// Check that m_xStream implements io::XSeekable and return it css::uno::Reference< css::io::XInputStream > const & GetOwnSeekStream(); + /// @throws css::uno::RuntimeException css::uno::Reference< css::io::XInputStream > SAL_CALL getRawData() throw(css::uno::RuntimeException); diff --git a/package/source/manifest/ManifestImport.hxx b/package/source/manifest/ManifestImport.hxx index 9cace18ee251..3b2302a8bc83 100644 --- a/package/source/manifest/ManifestImport.hxx +++ b/package/source/manifest/ManifestImport.hxx @@ -137,10 +137,15 @@ public: virtual void SAL_CALL setDocumentLocator( const css::uno::Reference< css::xml::sax::XLocator >& xLocator ) throw(css::xml::sax::SAXException, css::uno::RuntimeException, std::exception) override; private: + /// @throws css::uno::RuntimeException void doFileEntry(StringHashMap &rConvertedAttribs) throw(css::uno::RuntimeException); + /// @throws css::uno::RuntimeException void doEncryptionData(StringHashMap &rConvertedAttribs) throw(css::uno::RuntimeException); + /// @throws css::uno::RuntimeException void doAlgorithm(StringHashMap &rConvertedAttribs) throw(css::uno::RuntimeException); + /// @throws css::uno::RuntimeException void doKeyDerivation(StringHashMap &rConvertedAttribs) throw(css::uno::RuntimeException); + /// @throws css::uno::RuntimeException void doStartKeyAlg(StringHashMap &rConvertedAttribs) throw(css::uno::RuntimeException); }; #endif diff --git a/package/source/xstor/owriteablestream.hxx b/package/source/xstor/owriteablestream.hxx index 130d5fe1c532..dd6fd0471df9 100644 --- a/package/source/xstor/owriteablestream.hxx +++ b/package/source/xstor/owriteablestream.hxx @@ -132,6 +132,7 @@ private: css::uno::Reference< css::io::XStream > GetStream_Impl( sal_Int32 nStreamMode, bool bHierarchyAccess ); + /// @throws css::packages::NoEncryptionException ::comphelper::SequenceAsHashMap GetCommonRootEncryptionData() throw ( css::packages::NoEncryptionException ); css::uno::Sequence< css::beans::PropertyValue > ReadPackageStreamProperties(); diff --git a/package/source/xstor/xstorage.hxx b/package/source/xstor/xstorage.hxx index a0f2b3b74c8f..a8a84ecdff60 100644 --- a/package/source/xstor/xstorage.hxx +++ b/package/source/xstor/xstorage.hxx @@ -221,6 +221,7 @@ struct OStorage_Impl void Commit(); void Revert(); + /// @throws css::packages::NoEncryptionException ::comphelper::SequenceAsHashMap GetCommonRootEncryptionData() throw ( css::packages::NoEncryptionException ); void CopyToStorage( const css::uno::Reference< css::embed::XStorage >& xDest, @@ -247,6 +248,14 @@ struct OStorage_Impl void RemoveElement( SotElement_Impl* pElement ); static void ClearElement( SotElement_Impl* pElement ); + /// @throws css::embed::InvalidStorageException + /// @throws css::lang::IllegalArgumentException + /// @throws css::packages::WrongPasswordException + /// @throws css::packages::NoEncryptionException + /// @throws css::container::NoSuchElementException + /// @throws css::io::IOException + /// @throws css::embed::StorageWrappedTargetException + /// @throws css::uno::RuntimeException void CloneStreamElement( const OUString& aStreamName, bool bPassProvided, diff --git a/package/source/zipapi/MemoryByteGrabber.hxx b/package/source/zipapi/MemoryByteGrabber.hxx index 2beb8f5eccb7..548f7f635896 100644 --- a/package/source/zipapi/MemoryByteGrabber.hxx +++ b/package/source/zipapi/MemoryByteGrabber.hxx @@ -41,6 +41,10 @@ public: // XInputStream chained + /// @throws css::io::NotConnectedException + /// @throws css::io::BufferSizeExceededException + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException void SAL_CALL skipBytes( sal_Int32 nBytesToSkip ) throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::io::IOException, css::uno::RuntimeException) { |