XmlSyntaxException.cs 767 B

1234567891011121314151617181920212223242526
  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. public sealed class XmlSyntaxException : SystemException {
  12. // Constructors
  13. public XmlSyntaxException(){}
  14. public XmlSyntaxException(int lineNumber)
  15. : base (Locale.GetText("Invalid syntax on line ") + lineNumber.ToString() + "."){}
  16. public XmlSyntaxException(int lineNumber, string message)
  17. : base (Locale.GetText("Invalid syntax on line ") + lineNumber.ToString() + " - " + message ){}
  18. public XmlSyntaxException(string message)
  19. : base (message){}
  20. public XmlSyntaxException(string message, Exception inner)
  21. : base (message, inner) {}
  22. }
  23. }