mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-13 19:37:44 +01:00
Magic the magic happen
This commit is contained in:
parent
84769ae5b7
commit
658eedca37
188 changed files with 10329 additions and 3549 deletions
47
Dalamud/Memory/Exceptions/MemoryAllocationException.cs
Normal file
47
Dalamud/Memory/Exceptions/MemoryAllocationException.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
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)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MemoryAllocationException"/> 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 MemoryAllocationException(SerializationInfo info, StreamingContext context)
|
||||
: base(info, context)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
47
Dalamud/Memory/Exceptions/MemoryException.cs
Normal file
47
Dalamud/Memory/Exceptions/MemoryException.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Dalamud.Memory.Exceptions
|
||||
{
|
||||
/// <summary>
|
||||
/// The base exception when thrown from Dalamud.Memory.
|
||||
/// </summary>
|
||||
public abstract class MemoryException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MemoryException"/> class.
|
||||
/// </summary>
|
||||
public MemoryException()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MemoryException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="message">The message that describes the error.</param>
|
||||
public MemoryException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MemoryException"/> 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 MemoryException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MemoryException"/> 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 MemoryException(SerializationInfo info, StreamingContext context)
|
||||
: base(info, context)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
47
Dalamud/Memory/Exceptions/MemoryPermissionException.cs
Normal file
47
Dalamud/Memory/Exceptions/MemoryPermissionException.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
47
Dalamud/Memory/Exceptions/MemoryReadException.cs
Normal file
47
Dalamud/Memory/Exceptions/MemoryReadException.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Dalamud.Memory.Exceptions
|
||||
{
|
||||
/// <summary>
|
||||
/// An exception thrown when ReadProcessMemory fails.
|
||||
/// </summary>
|
||||
public class MemoryReadException : MemoryException
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MemoryReadException"/> class.
|
||||
/// </summary>
|
||||
public MemoryReadException()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MemoryReadException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="message">The message that describes the error.</param>
|
||||
public MemoryReadException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MemoryReadException"/> 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 MemoryReadException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MemoryReadException"/> 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 MemoryReadException(SerializationInfo info, StreamingContext context)
|
||||
: base(info, context)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
47
Dalamud/Memory/Exceptions/MemoryWriteException.cs
Normal file
47
Dalamud/Memory/Exceptions/MemoryWriteException.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Dalamud.Memory.Exceptions
|
||||
{
|
||||
/// <summary>
|
||||
/// An exception thrown when WriteProcessMemory fails.
|
||||
/// </summary>
|
||||
public class MemoryWriteException : MemoryException
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MemoryWriteException"/> class.
|
||||
/// </summary>
|
||||
public MemoryWriteException()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MemoryWriteException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="message">The message that describes the error.</param>
|
||||
public MemoryWriteException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MemoryWriteException"/> 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 MemoryWriteException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MemoryWriteException"/> 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 MemoryWriteException(SerializationInfo info, StreamingContext context)
|
||||
: base(info, context)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue