25#include <com/sun/star/ucb/IOErrorCode.hpp>
26#include <com/sun/star/ucb/InteractiveAugmentedIOException.hpp>
27#include <com/sun/star/ucb/NameClashException.hpp>
28#include <com/sun/star/beans/PropertyValue.hpp>
41XInteractionRequestImpl::XInteractionRequestImpl(
42 const OUString& aClashingName,
49 sal_Int32 nErrorCode(0), nMinorError(0);
52 std::vector<uno::Reference<task::XInteractionContinuation>> continuations{
58 NameClashException excep;
59 excep.Name = aClashingName;
60 excep.Classification = InteractionClassification_ERROR;
61 excep.Context = m_xOrigin;
62 excep.Message =
"folder exists and overwrite forbidden";
67 InteractiveAugmentedIOException excep;
68 excep.Code = IOErrorCode_INVALID_CHARACTER;
70 prop.Name =
"ResourceName";
72 prop.Value <<= aClashingName;
73 excep.Arguments = {
Any(prop) };
74 excep.Classification = InteractionClassification_ERROR;
75 excep.Context = m_xOrigin;
76 excep.Message =
"the name contained invalid characters";
80 m_xRequest.set(new ::comphelper::OInteractionRequest(aAny, std::move(continuations)));
void retrieveError(sal_Int32 CommandId, sal_Int32 &ErrorCode, sal_Int32 &minorCode)
#define TASKHANDLING_FOLDER_EXISTS_MKDIR
#define TASKHANDLING_INVALID_NAME_MKDIR