Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ExternalException.cs « System.Runtime.InteropServices « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 014074cef21bdcfebec0587f833a3732a4497ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// System.Runtime.InteropServices.ExternalException.cs
//
// Author:
//   Miguel De Icaza (miguel@ximian.com)
//
// (C) 2001 Ximian, Inc.  http://www.ximian.com
//

using System.Runtime.Serialization;
using System.Globalization;

namespace System.Runtime.InteropServices {
	[Serializable]
	public class ExternalException : SystemException {
		private int error_code;
		
		// Constructors
		public ExternalException ()
			: base (Locale.GetText ("External exception"))
		{
		}

		public ExternalException (string message)
			: base (message)
		{
		}

		protected ExternalException(SerializationInfo info, StreamingContext context)
			: base (info, context) {
		}
		
		public ExternalException (string message, Exception inner)
			: base (message, inner)
		{
		}

		public ExternalException (string message, int errorCode)
			: base (message)
		{
			error_code = errorCode;
		}

		public virtual int ErrorCode {
			get {
				return error_code;
			}
		}
	}
}