2 // System.Data.OleDb.OleDbError
5 // Rodrigo Moya (rodrigo@ximian.com)
6 // Tim Coleman (tim@timcoleman.com)
8 // Copyright (C) Rodrigo Moya, 2002
9 // Copyright (C) Tim Coleman, 2002
13 using System.Data.Common;
15 namespace System.Data.OleDb
17 public sealed class OleDbError
19 private string errorMessage;
20 private int nativeError;
21 private string errorSource;
22 private string sqlState;
26 internal OleDbError (string msg, int code, string source, string sql)
34 #endregion // Constructors
38 public string Message {
44 public int NativeError {
50 public string Source {
56 public string SQLState {
67 public override string ToString ()
71 stackTrace = " <Stack Trace>";
72 // FIXME: generate the correct SQL error string
73 toStr = "OleDbError:" + errorMessage + stackTrace;