XmlSyntaxException.cs 786 B

123456789101112131415161718192021222324252627
  1. //
  2. // System.Security.XmlSyntaxException.cs
  3. //
  4. // Author:
  5. // Nick Drochak([email protected])
  6. //
  7. // (C) Nick Drochak
  8. //
  9. using System.Globalization;
  10. namespace System.Security {
  11. [Serializable]
  12. public sealed class XmlSyntaxException : SystemException {
  13. // Constructors
  14. public XmlSyntaxException(){}
  15. public XmlSyntaxException(int lineNumber)
  16. : base (Locale.GetText("Invalid syntax on line ") + lineNumber.ToString() + "."){}
  17. public XmlSyntaxException(int lineNumber, string message)
  18. : base (Locale.GetText("Invalid syntax on line ") + lineNumber.ToString() + " - " + message ){}
  19. public XmlSyntaxException(string message)
  20. : base (message){}
  21. public XmlSyntaxException(string message, Exception inner)
  22. : base (message, inner) {}
  23. }
  24. }