2 // Mono.Data.TdsClient.TdsException.cs
5 // Tim Coleman (tim@timcoleman.com)
7 // Copyright (C) 2002 Tim Coleman
10 using Mono.Data.TdsClient.Internal;
12 using System.Runtime.Serialization;
14 namespace Mono.Data.TdsClient {
15 public class TdsException : SystemException
20 TdsErrorCollection errors;
33 internal TdsException (string message)
35 this.message = message;
36 errors = new TdsErrorCollection ();
39 #endregion // Constructors
44 get { return theClass; }
47 public TdsErrorCollection Errors {
48 get { return errors; }
51 public int LineNumber {
52 get { return lineNumber; }
55 public override string Message {
56 get { return message; }
60 get { return number; }
63 public string Procedure {
64 get { return procedure; }
67 public string Server {
68 get { return server; }
71 public override string Source {
72 get { return source; }
79 #endregion // Properties
84 public override void GetObjectData (SerializationInfo si, StreamingContext context)
86 throw new NotImplementedException ();