#ifndef _COM_SUN_STAR_TASK_NOMASTEREXCEPTION_HPP_
#define _COM_SUN_STAR_TASK_NOMASTEREXCEPTION_HPP_

#ifndef _COM_SUN_STAR_TASK_NOMASTEREXCEPTION_HDL_
#include <com/sun/star/task/NoMasterException.hdl>
#endif

#ifndef _OSL_MUTEX_HXX_
#include <osl/mutex.hxx>
#endif

#ifndef _COM_SUN_STAR_UNO_TYPE_HXX_
#include <com/sun/star/uno/Type.hxx>
#endif

#ifndef _COM_SUN_STAR_TASK_PASSWORDREQUESTMODE_HPP_
#include <com/sun/star/task/PasswordRequestMode.hpp>
#endif
#ifndef _COM_SUN_STAR_UNO_RUNTIMEEXCEPTION_HPP_
#include <com/sun/star/uno/RuntimeException.hpp>
#endif

namespace com
{
namespace sun
{
namespace star
{
namespace task
{

inline NoMasterException::NoMasterException() SAL_THROW( () )
    : ::com::sun::star::uno::RuntimeException()
    , Mode(::com::sun::star::task::PasswordRequestMode_PASSWORD_CREATE)
{ }

inline NoMasterException::NoMasterException(const ::rtl::OUString& __Message, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& __Context, const ::com::sun::star::task::PasswordRequestMode& __Mode) SAL_THROW( () )
    : ::com::sun::star::uno::RuntimeException(__Message, __Context)
    , Mode(__Mode)
{ }

} // task
} // star
} // sun
} // com

#if (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))
static typelib_TypeDescriptionReference * s_pType_com_sun_star_task_NoMasterException = 0;
#endif

inline const ::com::sun::star::uno::Type& SAL_CALL getCppuType( const ::com::sun::star::task::NoMasterException* ) SAL_THROW( () )
{
    #if ! (defined(__SUNPRO_CC) && (__SUNPRO_CC == 0x500))
    static typelib_TypeDescriptionReference * s_pType_com_sun_star_task_NoMasterException = 0;
    #endif

    if ( !s_pType_com_sun_star_task_NoMasterException )
    {
        typelib_static_type_init( &s_pType_com_sun_star_task_NoMasterException, typelib_TypeClass_EXCEPTION, "com.sun.star.task.NoMasterException" );
    }
    return * reinterpret_cast< ::com::sun::star::uno::Type * >( &s_pType_com_sun_star_task_NoMasterException );
}

#endif // _COM_SUN_STAR_TASK_NOMASTEREXCEPTION_HPP_
