mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
47 lines
1.8 KiB
C#
47 lines
1.8 KiB
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace Dalamud.Memory.Exceptions
|
|
{
|
|
/// <summary>
|
|
/// An exception thrown when VirtualProtect fails.
|
|
/// </summary>
|
|
public class MemoryPermissionException : MemoryException
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="MemoryPermissionException"/> class.
|
|
/// </summary>
|
|
public MemoryPermissionException()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="MemoryPermissionException"/> class.
|
|
/// </summary>
|
|
/// <param name="message">The message that describes the error.</param>
|
|
public MemoryPermissionException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="MemoryPermissionException"/> class.
|
|
/// </summary>
|
|
/// <param name="message">The error message that explains the reason for the exception.</param>
|
|
/// <param name="innerException">The exception that is the cause of the current exception.</param>
|
|
public MemoryPermissionException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="MemoryPermissionException"/> class.
|
|
/// </summary>
|
|
/// <param name="info">The object that holds the serialized data about the exception being thrown.</param>
|
|
/// <param name="context">The object that contains contextual information about the source or destination.</param>
|
|
protected MemoryPermissionException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
}
|
|
}
|