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 168 : inline Exception::Exception() SAL_THROW(())
22 : : Message()
23 168 : , Context()
24 : {
25 168 : ::cppu::UnoType< css::uno::Exception >::get();
26 168 : }
27 :
28 30 : inline Exception::Exception(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< css::uno::XInterface >& Context_) SAL_THROW(())
29 : : Message(Message_)
30 30 : , Context(Context_)
31 : {
32 30 : ::cppu::UnoType< css::uno::Exception >::get();
33 30 : }
34 :
35 2 : Exception::Exception(Exception const & the_other): Message(the_other.Message), Context(the_other.Context) {}
36 :
37 200 : Exception::~Exception() {}
38 :
39 2 : Exception & Exception::operator =(Exception const & the_other) {
40 : //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
41 2 : Message = the_other.Message;
42 2 : Context = the_other.Context;
43 2 : return *this;
44 : }
45 :
46 : } } } }
47 :
48 2 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER const css::uno::Exception *) SAL_THROW(()) {
49 2 : return ::cppu::UnoType< ::com::sun::star::uno::Exception >::get();
50 : }
51 :
52 : #endif // INCLUDED_COM_SUN_STAR_UNO_EXCEPTION_HPP
|