DAVException.hxx (6df1ea1f) DAVException.hxx (59ddfc10)
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

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

21
22
23
24#ifndef _DAVEXCEPTION_HXX_
25#define _DAVEXCEPTION_HXX_
26
27#include <rtl/ustring.hxx>
28
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

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

21
22
23
24#ifndef _DAVEXCEPTION_HXX_
25#define _DAVEXCEPTION_HXX_
26
27#include <rtl/ustring.hxx>
28
29namespace webdav_ucp
29namespace http_dav_ucp
30{
31
32/////////////////////////////////////////////////////////////////////////////
33// HTTP/WebDAV status codes
34/////////////////////////////////////////////////////////////////////////////
35
36const sal_uInt16 SC_NONE = 0;
37

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

134 };
135
136 private:
137 ExceptionCode mExceptionCode;
138 rtl::OUString mData;
139 sal_uInt16 mStatusCode;
140
141 public:
30{
31
32/////////////////////////////////////////////////////////////////////////////
33// HTTP/WebDAV status codes
34/////////////////////////////////////////////////////////////////////////////
35
36const sal_uInt16 SC_NONE = 0;
37

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

134 };
135
136 private:
137 ExceptionCode mExceptionCode;
138 rtl::OUString mData;
139 sal_uInt16 mStatusCode;
140
141 public:
142 DAVException( ExceptionCode inExceptionCode ) :
143 mExceptionCode( inExceptionCode ), mStatusCode( SC_NONE ) {};
142 DAVException( ExceptionCode inExceptionCode )
143 : mExceptionCode( inExceptionCode )
144 , mData()
145 , mStatusCode( SC_NONE )
146 {};
144 DAVException( ExceptionCode inExceptionCode,
147 DAVException( ExceptionCode inExceptionCode,
145 const rtl::OUString & rData ) :
146 mExceptionCode( inExceptionCode ), mData( rData ),
147 mStatusCode( SC_NONE ) {};
148 const rtl::OUString & rData )
149 : mExceptionCode( inExceptionCode )
150 , mData( rData )
151 , mStatusCode( SC_NONE )
152 {};
148 DAVException( ExceptionCode inExceptionCode,
149 const rtl::OUString & rData,
153 DAVException( ExceptionCode inExceptionCode,
154 const rtl::OUString & rData,
150 sal_uInt16 nStatusCode ) :
151 mExceptionCode( inExceptionCode ), mData( rData ),
152 mStatusCode( nStatusCode ) {};
155 sal_uInt16 nStatusCode )
156 : mExceptionCode( inExceptionCode )
157 , mData( rData )
158 , mStatusCode( nStatusCode )
159 {};
153 ~DAVException( ) {};
154
155 const ExceptionCode & getError() const { return mExceptionCode; }
156 const rtl::OUString & getData() const { return mData; }
157 sal_uInt16 getStatus() const { return mStatusCode; }
158};
159
160 ~DAVException( ) {};
161
162 const ExceptionCode & getError() const { return mExceptionCode; }
163 const rtl::OUString & getData() const { return mData; }
164 sal_uInt16 getStatus() const { return mStatusCode; }
165};
166
160} // namespace webdav_ucp
167} // namespace http_dav_ucp
161
162#endif // _DAVEXCEPTION_HXX_
168
169#endif // _DAVEXCEPTION_HXX_