DAVException.hxx (fb7f54d2) DAVException.hxx (9c0c1533)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 124 unchanged lines hidden (view full) ---

133 DAV_LOCKED_SELF, // locked by this OOo session
134
135 DAV_LOCKED // locked by third party
136 };
137
138 private:
139 ExceptionCode mExceptionCode;
140 rtl::OUString mData;
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 124 unchanged lines hidden (view full) ---

133 DAV_LOCKED_SELF, // locked by this OOo session
134
135 DAV_LOCKED // locked by third party
136 };
137
138 private:
139 ExceptionCode mExceptionCode;
140 rtl::OUString mData;
141 //owner of the lock in case of DAV_LOCKED
142 rtl::OUString mOwner;
143 //extendend error information, if the server has a specific header
144 //see in SerfRequestProcessor::handleSerfResponse for detail on how this is obtained
145 rtl::OUString mExtendedError;
141 sal_uInt16 mStatusCode;
142
143 public:
144 DAVException( ExceptionCode inExceptionCode )
145 : mExceptionCode( inExceptionCode )
146 , mData()
146 sal_uInt16 mStatusCode;
147
148 public:
149 DAVException( ExceptionCode inExceptionCode )
150 : mExceptionCode( inExceptionCode )
151 , mData()
152 , mOwner()
153 , mExtendedError()
147 , mStatusCode( SC_NONE )
148 {};
149 DAVException( ExceptionCode inExceptionCode,
150 const rtl::OUString & rData )
151 : mExceptionCode( inExceptionCode )
152 , mData( rData )
154 , mStatusCode( SC_NONE )
155 {};
156 DAVException( ExceptionCode inExceptionCode,
157 const rtl::OUString & rData )
158 : mExceptionCode( inExceptionCode )
159 , mData( rData )
160 , mOwner()
161 , mExtendedError()
153 , mStatusCode( SC_NONE )
154 {};
155 DAVException( ExceptionCode inExceptionCode,
156 const rtl::OUString & rData,
157 sal_uInt16 nStatusCode )
158 : mExceptionCode( inExceptionCode )
159 , mData( rData )
162 , mStatusCode( SC_NONE )
163 {};
164 DAVException( ExceptionCode inExceptionCode,
165 const rtl::OUString & rData,
166 sal_uInt16 nStatusCode )
167 : mExceptionCode( inExceptionCode )
168 , mData( rData )
169 , mOwner()
170 , mExtendedError()
160 , mStatusCode( nStatusCode )
161 {};
171 , mStatusCode( nStatusCode )
172 {};
173 DAVException( ExceptionCode inExceptionCode,
174 const rtl::OUString & rData,
175 const rtl::OUString & rExtendedError,
176 sal_uInt16 nStatusCode = SC_NONE )
177 : mExceptionCode( inExceptionCode )
178 , mData( rData )
179 , mOwner()
180 , mExtendedError( rExtendedError )
181 , mStatusCode( nStatusCode )
182 {};
162 ~DAVException( ) {};
163
164 const ExceptionCode & getError() const { return mExceptionCode; }
165 const rtl::OUString & getData() const { return mData; }
183 ~DAVException( ) {};
184
185 const ExceptionCode & getError() const { return mExceptionCode; }
186 const rtl::OUString & getData() const { return mData; }
187 const rtl::OUString & getExtendedError() const { return mExtendedError; }
166 sal_uInt16 getStatus() const { return mStatusCode; }
188 sal_uInt16 getStatus() const { return mStatusCode; }
189 const rtl::OUString & getOwner() const { return mOwner; }
190 void setOwner(const rtl::OUString & rOwner) { mOwner = rOwner; }
191
167};
168
169} // namespace http_dav_ucp
170
171#endif // _DAVEXCEPTION_HXX_
192};
193
194} // namespace http_dav_ucp
195
196#endif // _DAVEXCEPTION_HXX_