mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
chore: move exception to separate file
This commit is contained in:
parent
1d8b579b04
commit
63764cb669
3 changed files with 17 additions and 9 deletions
|
|
@ -84,7 +84,7 @@ internal static class ServiceManager
|
|||
/// </summary>
|
||||
/// <param name="dalamud">Instance of <see cref="Dalamud"/>.</param>
|
||||
/// <param name="startInfo">Instance of <see cref="DalamudStartInfo"/>.</param>
|
||||
/// <param name="fs">Instance of <see cref="ReliableFileStorage"/></param>
|
||||
/// <param name="fs">Instance of <see cref="ReliableFileStorage"/>.</param>
|
||||
/// <param name="configuration">Instance of <see cref="DalamudConfiguration"/>.</param>
|
||||
public static void InitializeProvidedServicesAndClientStructs(Dalamud dalamud, DalamudStartInfo startInfo, ReliableFileStorage fs, DalamudConfiguration configuration)
|
||||
{
|
||||
|
|
|
|||
16
Dalamud/Storage/FileReadException.cs
Normal file
16
Dalamud/Storage/FileReadException.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
namespace Dalamud.Storage;
|
||||
|
||||
/// <summary>
|
||||
/// Thrown if all read operations fail.
|
||||
/// </summary>
|
||||
public class FileReadException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="FileReadException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="inner">Inner error that caused this exception.</param>
|
||||
internal FileReadException(Exception inner)
|
||||
: base("Failed to read file", inner)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -280,11 +280,3 @@ public class ReliableFileStorage : IServiceType, IDisposable
|
|||
public byte[] Data { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
|
||||
public class FileReadException : Exception
|
||||
{
|
||||
public FileReadException(Exception inner)
|
||||
: base("Failed to read file", inner)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue