Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_UNO_EXCEPTION_HPP
2 : : #define INCLUDED_COM_SUN_STAR_UNO_EXCEPTION_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/Exception.hdl"
7 : :
8 : : #include "com/sun/star/uno/XInterface.hpp"
9 : : #include "com/sun/star/uno/Reference.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 : : #include "typelib/typeclass.h"
17 : : #include "typelib/typedescription.h"
18 : :
19 : : namespace com { namespace sun { namespace star { namespace uno {
20 : :
21 : 5 : inline Exception::Exception() SAL_THROW(())
22 : : : Message()
23 : 5 : , Context()
24 : 5 : { }
25 : :
26 : 506 : inline Exception::Exception(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Context_) SAL_THROW(())
27 : : : Message(Message_)
28 : 506 : , Context(Context_)
29 : 506 : { }
30 : :
31 : 0 : Exception::Exception(Exception const & the_other): Message(the_other.Message), Context(the_other.Context) {}
32 : :
33 : 511 : Exception::~Exception() {}
34 : :
35 : : Exception & Exception::operator =(Exception const & the_other) {
36 : : //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
37 : : Message = the_other.Message;
38 : : Context = the_other.Context;
39 : : return *this;
40 : : }
41 : :
42 : : } } } }
43 : :
44 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER const ::com::sun::star::uno::Exception *) SAL_THROW(()) {
45 : : return ::cppu::UnoType< ::com::sun::star::uno::Exception >::get();
46 : : }
47 : :
48 : : #endif // INCLUDED_COM_SUN_STAR_UNO_EXCEPTION_HPP
|