mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
includes full error text returned by ODBC driver svn path=/trunk/mcs/; revision=8449
67 lines
1.0 KiB
C#
67 lines
1.0 KiB
C#
//
|
|
// System.Data.Odbc.OdbcDataReader
|
|
//
|
|
// Author:
|
|
// Brian Ritchie ([email protected])
|
|
//
|
|
// Copyright (C) Brian Ritchie, 2002
|
|
//
|
|
|
|
using System.Collections;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Data.Common;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.Data.Odbc
|
|
{
|
|
public class OdbcException : SystemException
|
|
{
|
|
OdbcErrorCollection col;
|
|
|
|
|
|
internal OdbcException(OdbcError Error) : base (Error.Message)
|
|
{
|
|
col=new OdbcErrorCollection();
|
|
col.Add(Error);
|
|
}
|
|
|
|
|
|
public int ErrorCode
|
|
{
|
|
get
|
|
{
|
|
return col[0].NativeError;
|
|
}
|
|
}
|
|
|
|
public OdbcErrorCollection Errors
|
|
{
|
|
get
|
|
{
|
|
return col;
|
|
}
|
|
}
|
|
|
|
public override string Source
|
|
{
|
|
get
|
|
{
|
|
return col[0].Source;
|
|
}
|
|
}
|
|
|
|
|
|
#region Methods
|
|
|
|
[MonoTODO]
|
|
public override void GetObjectData (SerializationInfo si, StreamingContext context)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
#endregion // Methods
|
|
}
|
|
}
|