1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
//
// System.Data.SqlClient.SqlError.cs
//
// Author:
// Rodrigo Moya (rodrigo@ximian.com)
// Daniel Morgan (danmorg@sc.rr.com)
//
// (C) Ximian, Inc 2002
//
using System;
using System.Collections;
using System.Data;
using System.Runtime.InteropServices;
namespace System.Data.SqlClient
{
/// <summary>
/// Describes an error from a SQL database.
/// </summary>
[MonoTODO]
public sealed class SqlErrorCollection : ICollection, IEnumerable
{
ArrayList errorList = new ArrayList();
internal SqlErrorCollection() {
}
internal SqlErrorCollection(byte theClass, int lineNumber,
string message, int number, string procedure,
string server, string source, byte state) {
Add (theClass, lineNumber, message,
number, procedure,
server, source, state);
}
#region Properties
[MonoTODO]
public int Count {
get {
return errorList.Count;
}
}
[MonoTODO]
public void CopyTo(Array array, int index) {
throw new NotImplementedException ();
}
// [MonoTODO]
bool ICollection.IsSynchronized {
get {
throw new NotImplementedException ();
}
}
// [MonoTODO]
object ICollection.SyncRoot {
get {
throw new NotImplementedException ();
}
}
[MonoTODO]
public IEnumerator GetEnumerator() {
throw new NotImplementedException ();
}
// Index property (indexer)
// [MonoTODO]
public SqlError this[int index] {
get {
return (SqlError) errorList[index];
}
}
#endregion
#region Methods
[MonoTODO]
public override string ToString()
{
throw new NotImplementedException ();
}
#endregion
internal void Add(SqlError error) {
errorList.Add(error);
}
internal void Add(byte theClass, int lineNumber,
string message, int number, string procedure,
string server, string source, byte state) {
SqlError error = new SqlError(theClass,
lineNumber, message,
number, procedure,
server, source, state);
Add(error);
}
#region Destructors
[MonoTODO]
~SqlErrorCollection()
{
// FIXME: do the destructor - release resources
}
#endregion
}
}
|