Files
mono/mcs/class/System.Data/System.Data.OleDb/OleDbError.cs
T
Rodrigo Moya ab46838857 2002-08-18 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbConnection.cs (ChangeDatabase): implemented.

	* System.Data.OleDb/OleDbException.cs (OleDbException): added internal
	constructor.
	(ErrorCode, Message, Source, Errors): implemented.

	* System.Data.OleDb/OleDbError.cs: implemented the full class.

	* System.Data.OleDb/libgda.cs: added more libgda functions.

	* System.Data.OleDb/TestOleDb.cs (TestOleDb): display properties for
	the opened connection.

svn path=/trunk/mcs/; revision=6725
2002-08-18 18:35:06 +00:00

75 lines
1.1 KiB
C#

//
// System.Data.OleDb.OleDbError
//
// Authors:
// Rodrigo Moya ([email protected])
// Tim Coleman ([email protected])
//
// Copyright (C) Rodrigo Moya, 2002
// Copyright (C) Tim Coleman, 2002
//
using System.Data;
using System.Data.Common;
namespace System.Data.OleDb
{
public sealed class OleDbError
{
private string errorMessage;
private int nativeError;
private string errorSource;
private string sqlState;
#region Constructors
internal OleDbError (string msg, int code, string source, string sql)
{
errorMessage = msg;
nativeError = code;
errorSource = source;
sqlState = sql;
}
#endregion // Constructors
#region Properties
public string Message {
get {
return errorMessage;
}
}
public int NativeError {
get {
return nativeError;
}
}
public string Source {
get {
return errorSource;
}
}
public string SqlState {
get {
return sqlState;
}
}
#endregion
#region Methods
[MonoTODO]
public override string ToString ()
{
throw new NotImplementedException ();
}
#endregion
}
}