mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 21:03:43 +01:00
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace Dalamud.Memory.Exceptions;
|
|
|
|
/// <summary>
|
|
/// An exception thrown when VirtualAlloc fails.
|
|
/// </summary>
|
|
public class MemoryAllocationException : MemoryException
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="MemoryAllocationException"/> class.
|
|
/// </summary>
|
|
public MemoryAllocationException()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="MemoryAllocationException"/> class.
|
|
/// </summary>
|
|
/// <param name="message">The message that describes the error.</param>
|
|
public MemoryAllocationException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="MemoryAllocationException"/> 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 MemoryAllocationException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
}
|
|
}
|