2
0

SecurityException.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #nullable enable
  2. using System;
  3. namespace MediaBrowser.Controller.Net
  4. {
  5. /// <summary>
  6. /// The exception that is thrown when a user is authenticated, but not authorized to access a requested resource.
  7. /// </summary>
  8. public class SecurityException : Exception
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="SecurityException"/> class.
  12. /// </summary>
  13. public SecurityException()
  14. : base()
  15. {
  16. }
  17. /// <summary>
  18. /// Initializes a new instance of the <see cref="SecurityException"/> class.
  19. /// </summary>
  20. /// <param name="message">The message that describes the error.</param>
  21. public SecurityException(string message)
  22. : base(message)
  23. {
  24. }
  25. /// <summary>
  26. /// Initializes a new instance of the <see cref="SecurityException"/> class.
  27. /// </summary>
  28. /// <param name="message">The message that describes the error.</param>
  29. /// <param name="innerException">The exception that is the cause of the current exception, or a null reference if no inner exception is specified.</param>
  30. public SecurityException(string message, Exception innerException)
  31. : base(message, innerException)
  32. {
  33. }
  34. }
  35. }