PageRenderTime 50ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/src/NUnit/util/ProjectFormatException.cs

#
C# | 58 lines | 34 code | 15 blank | 9 comment | 0 complexity | e004be362c4e35dca7f42202eae13aa5 MD5 | raw file
Possible License(s): GPL-2.0
  1. // ****************************************************************
  2. // This is free software licensed under the NUnit license. You
  3. // may obtain a copy of the license as well as information regarding
  4. // copyright ownership at http://nunit.org.
  5. // ****************************************************************
  6. using System;
  7. namespace NUnit.Util
  8. {
  9. /// <summary>
  10. /// Exception raised when loading a project file with
  11. /// an invalid format.
  12. /// </summary>
  13. public class ProjectFormatException : ApplicationException
  14. {
  15. #region Instance Variables
  16. private int lineNumber;
  17. private int linePosition;
  18. #endregion
  19. #region Constructors
  20. public ProjectFormatException() : base() {}
  21. public ProjectFormatException( string message )
  22. : base( message ) {}
  23. public ProjectFormatException( string message, Exception inner )
  24. : base( message, inner ) {}
  25. public ProjectFormatException( string message, int lineNumber, int linePosition )
  26. : base( message )
  27. {
  28. this.lineNumber = lineNumber;
  29. this.linePosition = linePosition;
  30. }
  31. #endregion
  32. #region Properties
  33. public int LineNumber
  34. {
  35. get { return lineNumber; }
  36. }
  37. public int LinePosition
  38. {
  39. get { return linePosition; }
  40. }
  41. #endregion
  42. }
  43. }