LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/offapi/com/sun/star/sdbc - SQLException.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 10 20 50.0 %
Date: 2012-12-27 Functions: 3 7 42.9 %
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          11 : inline SQLException::SQLException() SAL_THROW(())
      20             :     : css::uno::Exception()
      21             :     , SQLState()
      22             :     , ErrorCode(0)
      23          11 :     , NextException()
      24          11 : { }
      25             : 
      26           0 : 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           0 :     , NextException(NextException_)
      31           0 : { }
      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           5 : SQLException::~SQLException() {}
      36             : 
      37           4 : SQLException & SQLException::operator =(SQLException const & the_other) {
      38             :     //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
      39           4 :     css::uno::Exception::operator =(the_other);
      40           4 :     SQLState = the_other.SQLState;
      41           4 :     ErrorCode = the_other.ErrorCode;
      42           4 :     NextException = the_other.NextException;
      43           4 :     return *this;
      44             : }
      45             : 
      46             : } } } }
      47             : 
      48             : namespace com { namespace sun { namespace star { namespace sdbc {
      49             : 
      50           0 : 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           0 :     if ( !the_type )
      53             :     {
      54           0 :         typelib_static_type_init( &the_type, typelib_TypeClass_EXCEPTION, "com.sun.star.sdbc.SQLException" );
      55             :     }
      56           0 :     return * reinterpret_cast< ::com::sun::star::uno::Type * >( &the_type );
      57             : }
      58             : 
      59             : } } } }
      60             : 
      61           0 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::sdbc::SQLException const *) SAL_THROW(()) {
      62           0 :     return ::cppu::UnoType< css::sdbc::SQLException >::get();
      63             : }
      64             : 
      65             : #endif // INCLUDED_COM_SUN_STAR_SDBC_SQLEXCEPTION_HPP

Generated by: LCOV version 1.10