(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System.Data.OracleClient / System.Data.OracleClient / OracleException.cs
blob3571948baf20970754f04856d249eb534aa56cb0
1 //
2 // OracleException.cs
3 //
4 // Part of the Mono class libraries at
5 // mcs/class/System.Data.OracleClient/System.Data.OracleClient
6 //
7 // Assembly: System.Data.OracleClient.dll
8 // Namespace: System.Data.OracleClient
9 //
10 // Authors:
11 // Tim Coleman <tim@timcoleman.com>
13 // Copyright (C) Daniel Morgan, 2002
14 // Copyright (C) Tim Coleman , 2003
16 // Licensed under the MIT/X11 License.
19 using System;
20 using System.Runtime.Serialization;
22 namespace System.Data.OracleClient {
23 [Serializable]
24 public sealed class OracleException : SystemException
26 #region Fields
28 int code;
29 string message;
31 #endregion // Fields
33 #region Constructors
35 internal OracleException (int code, string message)
37 this.code = code;
38 this.message = message;
41 private OracleException (SerializationInfo si, StreamingContext sc) : base(si, sc)
43 message = si.GetString ("message");
44 code = si.GetInt32 ("source");
47 #endregion // Constructors
49 #region Properties
51 public int Code {
52 get { return code; }
55 public override string Message {
56 get { return message; }
59 #endregion // Properties