~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to contrib/Sharpen/Sharpen/Exceptions.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// 
 
2
// Exceptions.cs
 
3
//  
 
4
// Author:
 
5
//       Lluis Sanchez Gual <lluis@novell.com>
 
6
// 
 
7
// Copyright (c) 2010 Novell, Inc (http://www.novell.com)
 
8
// 
 
9
// Permission is hereby granted, free of charge, to any person obtaining a copy
 
10
// of this software and associated documentation files (the "Software"), to deal
 
11
// in the Software without restriction, including without limitation the rights
 
12
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
13
// copies of the Software, and to permit persons to whom the Software is
 
14
// furnished to do so, subject to the following conditions:
 
15
// 
 
16
// The above copyright notice and this permission notice shall be included in
 
17
// all copies or substantial portions of the Software.
 
18
// 
 
19
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
20
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
21
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 
22
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
23
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 
24
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 
25
// THE SOFTWARE.
 
26
 
 
27
using System;
 
28
 
 
29
namespace Sharpen
 
30
{
 
31
        public class BrokenBarrierException : Exception
 
32
        {
 
33
        }
 
34
 
 
35
        internal class BufferUnderflowException : Exception
 
36
        {
 
37
        }
 
38
 
 
39
        public class CharacterCodingException : Exception
 
40
        {
 
41
        }
 
42
 
 
43
        public class DataFormatException : Exception
 
44
        {
 
45
        }
 
46
 
 
47
        public class EOFException : Exception
 
48
        {
 
49
                public EOFException ()
 
50
                {
 
51
                }
 
52
 
 
53
                public EOFException (string msg) : base(msg)
 
54
                {
 
55
                }
 
56
        }
 
57
 
 
58
        public class Error : Exception
 
59
        {
 
60
                public Error ()
 
61
                {
 
62
                }
 
63
 
 
64
                public Error (Exception ex) : base("Runtime Exception", ex)
 
65
                {
 
66
                }
 
67
 
 
68
                public Error (string msg) : base(msg)
 
69
                {
 
70
                }
 
71
 
 
72
                public Error (string msg, Exception ex) : base(msg, ex)
 
73
                {
 
74
                }
 
75
        }
 
76
 
 
77
        public class ExecutionException : Exception
 
78
        {
 
79
                public ExecutionException (Exception inner): base ("Execution failed", inner)
 
80
                {
 
81
                }
 
82
        }
 
83
 
 
84
        public class InstantiationException : Exception
 
85
        {
 
86
        }
 
87
 
 
88
        public class InterruptedIOException : Exception
 
89
        {
 
90
                public InterruptedIOException (string msg) : base(msg)
 
91
                {
 
92
                }
 
93
        }
 
94
 
 
95
        public class MissingResourceException : Exception
 
96
        {
 
97
        }
 
98
 
 
99
        public class NoSuchAlgorithmException : Exception
 
100
        {
 
101
        }
 
102
 
 
103
        public class NoSuchElementException : Exception
 
104
        {
 
105
        }
 
106
 
 
107
        internal class NoSuchMethodException : Exception
 
108
        {
 
109
        }
 
110
 
 
111
        internal class OverlappingFileLockException : Exception
 
112
        {
 
113
        }
 
114
 
 
115
        public class RuntimeException : Exception
 
116
        {
 
117
                public RuntimeException ()
 
118
                {
 
119
                }
 
120
 
 
121
                public RuntimeException (Exception ex) : base("Runtime Exception", ex)
 
122
                {
 
123
                }
 
124
 
 
125
                public RuntimeException (string msg) : base(msg)
 
126
                {
 
127
                }
 
128
 
 
129
                public RuntimeException (string msg, Exception ex) : base(msg, ex)
 
130
                {
 
131
                }
 
132
        }
 
133
 
 
134
        internal class StringIndexOutOfBoundsException : Exception
 
135
        {
 
136
        }
 
137
 
 
138
        internal class UnknownHostException : Exception
 
139
        {
 
140
        }
 
141
 
 
142
        internal class UnsupportedEncodingException : Exception
 
143
        {
 
144
        }
 
145
 
 
146
        internal class URISyntaxException : Exception
 
147
        {
 
148
                public URISyntaxException (string s, string msg) : base(s + " " + msg)
 
149
                {
 
150
                }
 
151
        }
 
152
 
 
153
        internal class ZipException : Exception
 
154
        {
 
155
        }
 
156
 
 
157
        public class GitException : Exception
 
158
        {
 
159
        }
 
160
        
 
161
        class ConnectException: Exception
 
162
        {
 
163
                public ConnectException (string msg): base (msg)
 
164
                {
 
165
                }
 
166
        }
 
167
        
 
168
        class KeyManagementException: Exception
 
169
        {
 
170
        }
 
171
}
 
172