XmlException.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // XmlException.cs
  3. //
  4. // Author:
  5. // Jason Diamond ([email protected])
  6. //
  7. // (C) 2002 Jason Diamond http://injektilo.org/
  8. //
  9. using System;
  10. using System.Runtime.Serialization;
  11. namespace System.Xml
  12. {
  13. public class XmlException : SystemException
  14. {
  15. #region Fields
  16. int lineNumber;
  17. int linePosition;
  18. #endregion
  19. #region Constructors
  20. public XmlException (string message, Exception innerException)
  21. : base (message, innerException)
  22. {
  23. }
  24. [MonoTODO]
  25. protected XmlException (SerializationInfo info, StreamingContext context)
  26. {
  27. throw new NotImplementedException ();
  28. }
  29. internal XmlException (string message) : base (message)
  30. {
  31. }
  32. internal XmlException (string message, int lineNumber, int linePosition) : base (message)
  33. {
  34. this.lineNumber = lineNumber;
  35. this.linePosition = linePosition;
  36. }
  37. #endregion
  38. #region Properties
  39. public int LineNumber
  40. {
  41. get { return lineNumber; }
  42. }
  43. public int LinePosition
  44. {
  45. get { return linePosition; }
  46. }
  47. #endregion
  48. }
  49. }