You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OptionRequiredException.cs 709B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Runtime.Serialization;
  3. namespace OptionParser
  4. {
  5. [Serializable]
  6. public class OptionRequiredException : ArgumentException
  7. {
  8. public string Option { get; set; }
  9. public string Description { get; set; }
  10. public OptionRequiredException()
  11. {
  12. }
  13. public OptionRequiredException(string message, string option = null, string description = null) : base(message)
  14. {
  15. Option = option;
  16. Description = description;
  17. }
  18. public OptionRequiredException(string message, Exception inner) : base(message, inner)
  19. {
  20. }
  21. protected OptionRequiredException(
  22. SerializationInfo info,
  23. StreamingContext context) : base(info, context)
  24. {
  25. }
  26. }
  27. }