mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 12:53:41 +01:00
chore: convert Dalamud to file-scoped namespaces
This commit is contained in:
parent
b093323acc
commit
987ff8dc8f
368 changed files with 55081 additions and 55450 deletions
|
|
@ -1,22 +1,21 @@
|
|||
namespace Dalamud.Plugin.Internal.Exceptions
|
||||
namespace Dalamud.Plugin.Internal.Exceptions;
|
||||
|
||||
/// <summary>
|
||||
/// This represents a banned plugin that attempted an operation.
|
||||
/// </summary>
|
||||
internal class BannedPluginException : PluginException
|
||||
{
|
||||
/// <summary>
|
||||
/// This represents a banned plugin that attempted an operation.
|
||||
/// Initializes a new instance of the <see cref="BannedPluginException"/> class.
|
||||
/// </summary>
|
||||
internal class BannedPluginException : PluginException
|
||||
/// <param name="message">The message describing the invalid operation.</param>
|
||||
public BannedPluginException(string message)
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BannedPluginException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="message">The message describing the invalid operation.</param>
|
||||
public BannedPluginException(string message)
|
||||
{
|
||||
this.Message = message;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the message describing the invalid operation.
|
||||
/// </summary>
|
||||
public override string Message { get; }
|
||||
this.Message = message;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the message describing the invalid operation.
|
||||
/// </summary>
|
||||
public override string Message { get; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,26 +1,25 @@
|
|||
namespace Dalamud.Plugin.Internal.Exceptions
|
||||
namespace Dalamud.Plugin.Internal.Exceptions;
|
||||
|
||||
/// <summary>
|
||||
/// This exception that is thrown when a plugin is instructed to load while another plugin with the same
|
||||
/// assembly name is already present and loaded.
|
||||
/// </summary>
|
||||
internal class DuplicatePluginException : PluginException
|
||||
{
|
||||
/// <summary>
|
||||
/// This exception that is thrown when a plugin is instructed to load while another plugin with the same
|
||||
/// assembly name is already present and loaded.
|
||||
/// Initializes a new instance of the <see cref="DuplicatePluginException"/> class.
|
||||
/// </summary>
|
||||
internal class DuplicatePluginException : PluginException
|
||||
/// <param name="assemblyName">Name of the conflicting assembly.</param>
|
||||
public DuplicatePluginException(string assemblyName)
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DuplicatePluginException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="assemblyName">Name of the conflicting assembly.</param>
|
||||
public DuplicatePluginException(string assemblyName)
|
||||
{
|
||||
this.AssemblyName = assemblyName;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the conflicting assembly.
|
||||
/// </summary>
|
||||
public string AssemblyName { get; init; }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string Message => $"A plugin with the same assembly name of {this.AssemblyName} is already loaded";
|
||||
this.AssemblyName = assemblyName;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the conflicting assembly.
|
||||
/// </summary>
|
||||
public string AssemblyName { get; init; }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string Message => $"A plugin with the same assembly name of {this.AssemblyName} is already loaded";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,24 +1,23 @@
|
|||
using System.IO;
|
||||
|
||||
namespace Dalamud.Plugin.Internal.Exceptions
|
||||
namespace Dalamud.Plugin.Internal.Exceptions;
|
||||
|
||||
/// <summary>
|
||||
/// This exception represents a file that does not implement IDalamudPlugin.
|
||||
/// </summary>
|
||||
internal class InvalidPluginException : PluginException
|
||||
{
|
||||
/// <summary>
|
||||
/// This exception represents a file that does not implement IDalamudPlugin.
|
||||
/// Initializes a new instance of the <see cref="InvalidPluginException"/> class.
|
||||
/// </summary>
|
||||
internal class InvalidPluginException : PluginException
|
||||
/// <param name="dllFile">The invalid file.</param>
|
||||
public InvalidPluginException(FileInfo dllFile)
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InvalidPluginException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="dllFile">The invalid file.</param>
|
||||
public InvalidPluginException(FileInfo dllFile)
|
||||
{
|
||||
this.DllFile = dllFile;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the invalid file.
|
||||
/// </summary>
|
||||
public FileInfo DllFile { get; init; }
|
||||
this.DllFile = dllFile;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the invalid file.
|
||||
/// </summary>
|
||||
public FileInfo DllFile { get; init; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,22 +1,21 @@
|
|||
namespace Dalamud.Plugin.Internal.Exceptions
|
||||
namespace Dalamud.Plugin.Internal.Exceptions;
|
||||
|
||||
/// <summary>
|
||||
/// This represents an invalid plugin operation.
|
||||
/// </summary>
|
||||
internal class InvalidPluginOperationException : PluginException
|
||||
{
|
||||
/// <summary>
|
||||
/// This represents an invalid plugin operation.
|
||||
/// Initializes a new instance of the <see cref="InvalidPluginOperationException"/> class.
|
||||
/// </summary>
|
||||
internal class InvalidPluginOperationException : PluginException
|
||||
/// <param name="message">The message describing the invalid operation.</param>
|
||||
public InvalidPluginOperationException(string message)
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="InvalidPluginOperationException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="message">The message describing the invalid operation.</param>
|
||||
public InvalidPluginOperationException(string message)
|
||||
{
|
||||
this.Message = message;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the message describing the invalid operation.
|
||||
/// </summary>
|
||||
public override string Message { get; }
|
||||
this.Message = message;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the message describing the invalid operation.
|
||||
/// </summary>
|
||||
public override string Message { get; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
using System;
|
||||
|
||||
namespace Dalamud.Plugin.Internal.Exceptions
|
||||
namespace Dalamud.Plugin.Internal.Exceptions;
|
||||
|
||||
/// <summary>
|
||||
/// This represents the base Dalamud plugin exception.
|
||||
/// </summary>
|
||||
internal abstract class PluginException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// This represents the base Dalamud plugin exception.
|
||||
/// </summary>
|
||||
internal abstract class PluginException : Exception
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue