LCOV - code coverage report
Current view: top level - sdbc - SQLException.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 19 20 95.0 %
Date: 2013-07-09 Functions: 6 7 85.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_SDBC_SQLEXCEPTION_HPP
       2             : #define INCLUDED_COM_SUN_STAR_SDBC_SQLEXCEPTION_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/sdbc/SQLException.hdl"
       7             : 
       8             : #include "com/sun/star/uno/Exception.hpp"
       9             : #include "com/sun/star/uno/Any.hxx"
      10             : #include "com/sun/star/uno/Type.hxx"
      11             : #include "cppu/unotype.hxx"
      12             : #include "osl/mutex.hxx"
      13             : #include "rtl/ustring.hxx"
      14             : #include "rtl/instance.hxx"
      15             : #include "sal/types.h"
      16             : 
      17             : namespace com { namespace sun { namespace star { namespace sdbc {
      18             : 
      19         705 : inline SQLException::SQLException() SAL_THROW(())
      20             :     : css::uno::Exception()
      21             :     , SQLState()
      22             :     , ErrorCode(0)
      23         705 :     , NextException()
      24         705 : { }
      25             : 
      26          87 : inline SQLException::SQLException(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< css::uno::XInterface >& Context_, const ::rtl::OUString& SQLState_, const ::sal_Int32& ErrorCode_, const ::com::sun::star::uno::Any& NextException_) SAL_THROW(())
      27             :     : css::uno::Exception(Message_, Context_)
      28             :     , SQLState(SQLState_)
      29             :     , ErrorCode(ErrorCode_)
      30          87 :     , NextException(NextException_)
      31          87 : { }
      32             : 
      33           0 : SQLException::SQLException(SQLException const & the_other): css::uno::Exception(the_other), SQLState(the_other.SQLState), ErrorCode(the_other.ErrorCode), NextException(the_other.NextException) {}
      34             : 
      35         786 : SQLException::~SQLException() {}
      36             : 
      37         476 : SQLException & SQLException::operator =(SQLException const & the_other) {
      38             :     //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
      39         476 :     css::uno::Exception::operator =(the_other);
      40         476 :     SQLState = the_other.SQLState;
      41         476 :     ErrorCode = the_other.ErrorCode;
      42         476 :     NextException = the_other.NextException;
      43         476 :     return *this;
      44             : }
      45             : 
      46             : } } } }
      47             : 
      48             : namespace com { namespace sun { namespace star { namespace sdbc {
      49             : 
      50          12 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::sdbc::SQLException const *) {
      51             :     static typelib_TypeDescriptionReference * the_type = 0;
      52          12 :     if ( !the_type )
      53             :     {
      54           3 :         typelib_static_type_init( &the_type, typelib_TypeClass_EXCEPTION, "com.sun.star.sdbc.SQLException" );
      55             :     }
      56          12 :     return * reinterpret_cast< ::com::sun::star::uno::Type * >( &the_type );
      57             : }
      58             : 
      59             : } } } }
      60             : 
      61           8 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::sdbc::SQLException const *) SAL_THROW(()) {
      62           8 :     return ::cppu::UnoType< css::sdbc::SQLException >::get();
      63             : }
      64             : 
      65             : #endif // INCLUDED_COM_SUN_STAR_SDBC_SQLEXCEPTION_HPP

Generated by: LCOV version 1.10