~ubuntu-branches/ubuntu/jaunty/gnome-do-plugins/jaunty-proposed

« back to all changes in this revision

Viewing changes to BundledLibraries/libgoogle-data-mono-1.4.0.2/src/core/authexceptions.cs

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane, Daniel T Chen, Iain Lane
  • Date: 2009-03-18 00:40:51 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090318004051-ujn1ja3kiu3ky7ru
Tags: 0.8.1.3+dfsg-0ubuntu1
[ Daniel T Chen ]
* New upstream release (LP: #344578)
  + Banshee plugin goes crazy if banshee isn't loaded first
    (LP: #289802)
  + gnome-do gCalculate plugin fails to display "times" symbol
    (LP: #274252)
  + Banshee-1 fails to build in Mono 2.0 (LP: #309188)
  + Pidgin 2.5.4 has incompatible dbus interface. s/uint/int/
    (LP: #314927)
  + Pidgin plugin hangs opening a chat if pidgin is unresponsive
    (LP: #315565)
  + twitter plugin still reports friend updates even when
    deactivated (LP: #317674)
  + Misspelling in microblogging plugin confirmation message
    (LP: #319433)
  + make install uses mdtool, but configure doesn't check for it
    (LP: #322951)
  + Virtualbox Icon in 2.10 are broken because of a new
    specification (LP: #323902)
  + Google Maps Plugin shouldn't always use route (LP: #324271)
  + Fix for Google Maps when using newlines and other special
    characters (LP: #324667)
  + VirtualBox failed to load icon (LP: #325712)
  + 'Read Man Pages' plugin makes Gnome-Do unresponsive
    (LP: #325935)
  + Search returns broken URLs (LP: #327855)
  + Default action for SSH hosts is "open" (LP: #328236)
  + Files and Folders Configuration doesn't use standard buttons
    (LP: #328236)
  + Window manager maximize action should focus if window is not
    currently focused (LP: #258893)
  + Locate plugin has no error message (LP: #262360)
  + Wishlist: Let user specify files and folders to ignore
    (LP: #263177)
  + ts-client plugin doesn't index subdirectories (LP: #322352)
  + Max 3000 items in Files and Folders plugin (LP: #324105)
  + putty cannot find host when running from gnome do
    (LP: #324282)
  + locate plugin with globbing (LP: #334798)
  + Twitter plugin encountered an error in UpdateFriends
    (LP: #317575)
  + gnome-terminal profiles no longer work (LP: #321977)
  + Creating a task using Remember the Milk plugin can fail if
    no task list is specified (LP: #324066)
  + bundled libraries makefile needs destdir (LP: #324704)
  + Typographical error in del.icio.us plugin (LP: #330525)
  + ImageShack fails to upload (LP: #337324)
* debian/copyright
  + Refresh for new upstream version; new plugins added.
* debian/patches/00_dfsg_autofoo.dpatch
  + Update for new upstream version
  + Don't build the YouTube plugin due to removal of shipped
    exes and dlls causing FTBFS
* debian/patches/02_ssh_respect_exec_arg.dpatch
  debian/patches/03_buildsystem_respect_mcs.dpatch
  debian/patches/04_fix_pidgin_dbus_ints.dpatch
  + Drop; fixed upstream

[ Iain Lane ]
* debian/rules: Update repackaging to not delete *.dll; upstream now ships
  source copies of google-gdata meaning we can now enable the Google and
  Youtube plugins.
* debian/patches/00_dfsg_autofoo: Drop, fixed by including and building
  these libs now. 
* debian/copyright: Update with information for google-gdata. 
* debian/patches/04_fix_pidgin_dbus_ints.dpatch: Add left out piece of patch
* debian/control: Bump gnome-do build-dep to require current version. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (c) 2006 Google Inc.
 
2
 *
 
3
 * Licensed under the Apache License, Version 2.0 (the "License");
 
4
 * you may not use this file except in compliance with the License.
 
5
 * You may obtain a copy of the License at
 
6
 *
 
7
 *     http://www.apache.org/licenses/LICENSE-2.0
 
8
 *
 
9
 * Unless required by applicable law or agreed to in writing, software
 
10
 * distributed under the License is distributed on an "AS IS" BASIS,
 
11
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
12
 * See the License for the specific language governing permissions and
 
13
 * limitations under the License.
 
14
*/
 
15
#region Using directives
 
16
 
 
17
#define USE_TRACING
 
18
#define USE_LOGGING
 
19
 
 
20
using System;
 
21
using System.Xml; 
 
22
using System.Net;
 
23
using System.Diagnostics;
 
24
#if WindowsCE || PocketPC
 
25
#else 
 
26
using System.Runtime.Serialization;
 
27
#endif
 
28
using System.Security.Permissions;
 
29
using System.IO;
 
30
using System.Text; 
 
31
 
 
32
 
 
33
 
 
34
#endregion
 
35
 
 
36
 
 
37
//////////////////////////////////////////////////////////////////////
 
38
// <summary>custom exceptions</summary> 
 
39
//////////////////////////////////////////////////////////////////////
 
40
namespace Google.GData.Client
 
41
{
 
42
 
 
43
    //////////////////////////////////////////////////////////////////////
 
44
    /// <summary>standard exception class to be used when authentication 
 
45
    /// using Google Client Login fails
 
46
    /// </summary> 
 
47
    //////////////////////////////////////////////////////////////////////
 
48
#if WindowsCE || PocketPC
 
49
#else 
 
50
    [Serializable]
 
51
#endif
 
52
    public class AuthenticationException : LoggedException
 
53
    {
 
54
        //////////////////////////////////////////////////////////////////////
 
55
        /// <summary>default constructor so that FxCop does not complain</summary> 
 
56
        //////////////////////////////////////////////////////////////////////
 
57
        public AuthenticationException() {}
 
58
 
 
59
        /// <summary>
 
60
        /// base constructor, takes a message text
 
61
        /// </summary> 
 
62
        /// <param name="msg"></param>
 
63
        public AuthenticationException(String msg) :  base(msg) {}
 
64
 
 
65
        /// <summary>
 
66
        /// default constructor
 
67
        /// </summary>
 
68
        /// <param name="msg">message for exception</param>
 
69
        /// <param name="e">inner exception</param>
 
70
        public AuthenticationException(String msg, Exception e) : base(msg,e) { } 
 
71
     }
 
72
 
 
73
    /// <summary>thrown when the credentials are wrong</summary> 
 
74
#if WindowsCE || PocketPC
 
75
#else
 
76
    [Serializable]
 
77
#endif
 
78
    public class InvalidCredentialsException : AuthenticationException
 
79
    {
 
80
        //////////////////////////////////////////////////////////////////////
 
81
        /// <summary>default constructor so that FxCop does not complain</summary> 
 
82
        //////////////////////////////////////////////////////////////////////
 
83
        public InvalidCredentialsException() {}
 
84
        //////////////////////////////////////////////////////////////////////
 
85
        /// <summary>constructor taking a descriptive string</summary> 
 
86
        //////////////////////////////////////////////////////////////////////
 
87
        public InvalidCredentialsException(String msg) :  base(msg) {} 
 
88
 
 
89
        /// <summary>
 
90
        /// default constructor
 
91
        /// </summary>
 
92
        /// <param name="msg">message for exception</param>
 
93
        /// <param name="e">inner exception</param>
 
94
        public InvalidCredentialsException(String msg, Exception e) : base(msg, e) { } 
 
95
 
 
96
    }
 
97
 
 
98
    //////////////////////////////////////////////////////////////////////
 
99
    /// <summary>thrown when the account was deleted
 
100
    /// </summary> 
 
101
    //////////////////////////////////////////////////////////////////////
 
102
#if WindowsCE || PocketPC
 
103
#else
 
104
    [Serializable]
 
105
#endif
 
106
    public class AccountDeletedException : AuthenticationException
 
107
     {
 
108
            //////////////////////////////////////////////////////////////////////
 
109
            /// <summary>default constructor so that FxCop does not complain</summary> 
 
110
            //////////////////////////////////////////////////////////////////////
 
111
            public AccountDeletedException() {}
 
112
            //////////////////////////////////////////////////////////////////////
 
113
            /// <summary>constructor taking a descriptive string</summary> 
 
114
            //////////////////////////////////////////////////////////////////////
 
115
            public AccountDeletedException(String msg) :  base(msg) {} 
 
116
 
 
117
            /// <summary>
 
118
            /// default constructor
 
119
            /// </summary>
 
120
            /// <param name="msg">message for exception</param>
 
121
            /// <param name="e">inner exception</param>
 
122
            public AccountDeletedException(String msg, Exception e) : base(msg, e) { } 
 
123
 
 
124
     }
 
125
 
 
126
     //////////////////////////////////////////////////////////////////////
 
127
     /// <summary>thrown when the account was disabled
 
128
     /// </summary> 
 
129
     //////////////////////////////////////////////////////////////////////
 
130
#if WindowsCE || PocketPC
 
131
#else
 
132
    [Serializable]
 
133
#endif
 
134
      public class AccountDisabledException : AuthenticationException
 
135
      {
 
136
             //////////////////////////////////////////////////////////////////////
 
137
             /// <summary>default constructor so that FxCop does not complain</summary> 
 
138
             //////////////////////////////////////////////////////////////////////
 
139
             public AccountDisabledException() {}
 
140
            //////////////////////////////////////////////////////////////////////
 
141
            /// <summary>constructor taking a descriptive string</summary> 
 
142
            //////////////////////////////////////////////////////////////////////
 
143
            public AccountDisabledException(String msg) :  base(msg) {} 
 
144
 
 
145
            /// <summary>
 
146
            /// default constructor
 
147
            /// </summary>
 
148
            /// <param name="msg">message for exception</param>
 
149
            /// <param name="e">inner exception</param>
 
150
            public AccountDisabledException(String msg, Exception e) : base(msg, e) { } 
 
151
 
 
152
      }
 
153
 
 
154
      //////////////////////////////////////////////////////////////////////
 
155
      /// <summary>the account hoder was not verified
 
156
      /// </summary> 
 
157
      //////////////////////////////////////////////////////////////////////
 
158
#if WindowsCE || PocketPC
 
159
#else
 
160
    [Serializable]
 
161
#endif
 
162
       public class NotVerifiedException : AuthenticationException
 
163
       {
 
164
            //////////////////////////////////////////////////////////////////////
 
165
            /// <summary>default constructor so that FxCop does not complain</summary> 
 
166
            //////////////////////////////////////////////////////////////////////
 
167
            public NotVerifiedException() {}
 
168
            //////////////////////////////////////////////////////////////////////
 
169
            /// <summary>constructor taking a descriptive string</summary> 
 
170
            //////////////////////////////////////////////////////////////////////
 
171
            public NotVerifiedException(String msg) :  base(msg) {} 
 
172
 
 
173
            /// <summary>
 
174
            /// default constructor
 
175
            /// </summary>
 
176
            /// <param name="msg">message for exception</param>
 
177
            /// <param name="e">inner exception</param>
 
178
            public NotVerifiedException(String msg, Exception e) : base(msg, e) { } 
 
179
 
 
180
       }
 
181
 
 
182
       //////////////////////////////////////////////////////////////////////
 
183
       /// <summary>The Terms were not agreed with..
 
184
       /// </summary> 
 
185
       //////////////////////////////////////////////////////////////////////
 
186
#if WindowsCE || PocketPC
 
187
#else
 
188
    [Serializable]
 
189
#endif
 
190
        public class TermsNotAgreedException : AuthenticationException
 
191
        {
 
192
            //////////////////////////////////////////////////////////////////////
 
193
            /// <summary>default constructor so that FxCop does not complain</summary> 
 
194
            //////////////////////////////////////////////////////////////////////
 
195
            public TermsNotAgreedException() {}
 
196
            //////////////////////////////////////////////////////////////////////
 
197
            /// <summary>constructor taking a descriptive string</summary> 
 
198
            //////////////////////////////////////////////////////////////////////
 
199
            public TermsNotAgreedException(String msg) :  base(msg) {} 
 
200
   
 
201
            /// <summary>
 
202
            /// default constructor
 
203
            /// </summary>
 
204
            /// <param name="msg">message for exception</param>
 
205
            /// <param name="e">inner exception</param>
 
206
            public TermsNotAgreedException(String msg, Exception e) : base(msg, e) { } 
 
207
 
 
208
        }
 
209
 
 
210
        //////////////////////////////////////////////////////////////////////
 
211
        /// <summary>The service is current not available
 
212
        /// </summary> 
 
213
        //////////////////////////////////////////////////////////////////////
 
214
#if WindowsCE || PocketPC
 
215
#else
 
216
    [Serializable]
 
217
#endif
 
218
         public class ServiceUnavailableException : AuthenticationException
 
219
         {
 
220
            //////////////////////////////////////////////////////////////////////
 
221
            /// <summary>default constructor so that FxCop does not complain</summary> 
 
222
            //////////////////////////////////////////////////////////////////////
 
223
            public ServiceUnavailableException() {}
 
224
            //////////////////////////////////////////////////////////////////////
 
225
            /// <summary>constructor taking a descriptive string</summary> 
 
226
            //////////////////////////////////////////////////////////////////////
 
227
            public ServiceUnavailableException(String msg) :  base(msg) {} 
 
228
 
 
229
            /// <summary>
 
230
            /// default constructor
 
231
            /// </summary>
 
232
            /// <param name="msg">message for exception</param>
 
233
            /// <param name="e">inner exception</param>
 
234
            public ServiceUnavailableException(String msg, Exception e) : base(msg, e) { } 
 
235
 
 
236
         }
 
237
 
 
238
         //////////////////////////////////////////////////////////////////////
 
239
         /// <summary>many unsuccessfull logins might create this...
 
240
         /// </summary> 
 
241
         //////////////////////////////////////////////////////////////////////
 
242
#if WindowsCE || PocketPC
 
243
#else
 
244
    [Serializable]
 
245
#endif
 
246
          public class CaptchaRequiredException : AuthenticationException
 
247
          {
 
248
             private string captchaUrl;
 
249
             private string captchaToken;
 
250
 
 
251
             //////////////////////////////////////////////////////////////////////
 
252
             /// <summary>default constructor so that FxCop does not complain</summary> 
 
253
             //////////////////////////////////////////////////////////////////////
 
254
             public CaptchaRequiredException() {}
 
255
  
 
256
             //////////////////////////////////////////////////////////////////////
 
257
             /// <summary>constructor taking a descriptive string</summary> 
 
258
             //////////////////////////////////////////////////////////////////////
 
259
             public CaptchaRequiredException(String msg, String url, String token) :  base(msg)
 
260
             {
 
261
                 this.captchaUrl = url;
 
262
                 this.captchaToken = token;
 
263
             }
 
264
 
 
265
              /// <summary>
 
266
             /// default constructor
 
267
             /// </summary>
 
268
             /// <param name="msg">message for exception</param>
 
269
             /// <param name="e">inner exception</param>
 
270
              public CaptchaRequiredException(String msg, Exception e) : base(msg, e) { } 
 
271
 
 
272
 
 
273
 
 
274
              //////////////////////////////////////////////////////////////////////
 
275
              /// <summary>Read only accessor for captchaUrl</summary> 
 
276
              //////////////////////////////////////////////////////////////////////
 
277
              public string Url
 
278
              {
 
279
                  get {return this.captchaUrl;}
 
280
              }
 
281
              // end of accessor for captchaUrl
 
282
    
 
283
              //////////////////////////////////////////////////////////////////////
 
284
               /// <summary>Read only accessor for captchaToken</summary> 
 
285
              //////////////////////////////////////////////////////////////////////
 
286
              public string Token
 
287
              {
 
288
                  get {return this.captchaToken;}
 
289
              }
 
290
              // end of accessor for captchaToken
 
291
        }
 
292
 
 
293
} //end of file //////////////////////////////////////////////////////////////////////////