mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
Jay Wren <[email protected]> svn path=/branches/mono-2-4/mcs/; revision=127840
70 lines
1.3 KiB
C#
70 lines
1.3 KiB
C#
//
|
|
// OracleException.cs
|
|
//
|
|
// Part of the Mono class libraries at
|
|
// mcs/class/System.Data.OracleClient/System.Data.OracleClient
|
|
//
|
|
// Assembly: System.Data.OracleClient.dll
|
|
// Namespace: System.Data.OracleClient
|
|
//
|
|
// Authors:
|
|
// Tim Coleman <[email protected]>
|
|
//
|
|
// Copyright (C) Daniel Morgan, 2002
|
|
// Copyright (C) Tim Coleman , 2003
|
|
//
|
|
// Licensed under the MIT/X11 License.
|
|
//
|
|
|
|
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.Data.OracleClient {
|
|
[Serializable]
|
|
public sealed class OracleException
|
|
#if NET_2_0
|
|
: System.Data.Common.DbException
|
|
#else
|
|
: SystemException
|
|
#endif // NET_1_1
|
|
{
|
|
#region Fields
|
|
|
|
private int code;
|
|
|
|
#endregion // Fields
|
|
|
|
#region Constructors
|
|
|
|
internal OracleException (int code, string message) : base (message)
|
|
{
|
|
this.code = code;
|
|
}
|
|
|
|
private OracleException (SerializationInfo si, StreamingContext sc) : base(si, sc)
|
|
{
|
|
code = si.GetInt32 ("code");
|
|
}
|
|
|
|
#endregion // Constructors
|
|
|
|
#region Properties
|
|
|
|
public int Code {
|
|
get { return code; }
|
|
}
|
|
|
|
#endregion // Properties
|
|
|
|
#region Override implementation of Exception
|
|
|
|
public override void GetObjectData (SerializationInfo si, StreamingContext context)
|
|
{
|
|
si.AddValue ("code", code, typeof(int));
|
|
base.GetObjectData (si, context);
|
|
}
|
|
|
|
#endregion Override implementation of Exception
|
|
}
|
|
}
|