MemoryProtectionException.cs 555 B

1234567891011121314151617181920212223
  1. using System;
  2. namespace Ryujinx.Memory
  3. {
  4. class MemoryProtectionException : Exception
  5. {
  6. public MemoryProtectionException()
  7. {
  8. }
  9. public MemoryProtectionException(MemoryPermission permission) : base($"Failed to set memory protection to \"{permission}\".")
  10. {
  11. }
  12. public MemoryProtectionException(string message) : base(message)
  13. {
  14. }
  15. public MemoryProtectionException(string message, Exception innerException) : base(message, innerException)
  16. {
  17. }
  18. }
  19. }