LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/offapi/com/sun/star/sdbc - SQLException.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 19 20 95.0 %
Date: 2012-08-25 Functions: 6 7 85.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 2 2 100.0 %

           Branch data     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                 :       1344 : inline SQLException::SQLException() SAL_THROW(())
      20                 :            :     : ::com::sun::star::uno::Exception()
      21                 :            :     , SQLState()
      22                 :            :     , ErrorCode(0)
      23                 :       1344 :     , NextException()
      24                 :       1344 : { }
      25                 :            : 
      26                 :        174 : inline SQLException::SQLException(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Context_, const ::rtl::OUString& SQLState_, const ::sal_Int32& ErrorCode_, const ::com::sun::star::uno::Any& NextException_) SAL_THROW(())
      27                 :            :     : ::com::sun::star::uno::Exception(Message_, Context_)
      28                 :            :     , SQLState(SQLState_)
      29                 :            :     , ErrorCode(ErrorCode_)
      30                 :        174 :     , NextException(NextException_)
      31                 :        174 : { }
      32                 :            : 
      33                 :          0 : SQLException::SQLException(SQLException const & the_other): ::com::sun::star::uno::Exception(the_other), SQLState(the_other.SQLState), ErrorCode(the_other.ErrorCode), NextException(the_other.NextException) {}
      34                 :            : 
      35                 :       1518 : SQLException::~SQLException() {}
      36                 :            : 
      37                 :        920 : SQLException & SQLException::operator =(SQLException const & the_other) {
      38                 :            :     //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
      39                 :        920 :     ::com::sun::star::uno::Exception::operator =(the_other);
      40                 :        920 :     SQLState = the_other.SQLState;
      41                 :        920 :     ErrorCode = the_other.ErrorCode;
      42                 :        920 :     NextException = the_other.NextException;
      43                 :        920 :     return *this;
      44                 :            : }
      45                 :            : 
      46                 :            : } } } }
      47                 :            : 
      48                 :            : namespace com { namespace sun { namespace star { namespace sdbc {
      49                 :            : 
      50                 :         24 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::sdbc::SQLException const *) {
      51                 :            :     static typelib_TypeDescriptionReference * the_type = 0;
      52         [ +  + ]:         24 :     if ( !the_type )
      53                 :            :     {
      54                 :          6 :         typelib_static_type_init( &the_type, typelib_TypeClass_EXCEPTION, "com.sun.star.sdbc.SQLException" );
      55                 :            :     }
      56                 :         24 :     return * reinterpret_cast< ::com::sun::star::uno::Type * >( &the_type );
      57                 :            : }
      58                 :            : 
      59                 :            : } } } }
      60                 :            : 
      61                 :         16 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::sdbc::SQLException const *) SAL_THROW(()) {
      62                 :         16 :     return ::cppu::UnoType< ::com::sun::star::sdbc::SQLException >::get();
      63                 :            : }
      64                 :            : 
      65                 :            : #endif // INCLUDED_COM_SUN_STAR_SDBC_SQLEXCEPTION_HPP

Generated by: LCOV version 1.10