chore: move exception to separate file

This commit is contained in:
goat 2023-09-27 22:41:25 +02:00
parent 1d8b579b04
commit 63764cb669
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
3 changed files with 17 additions and 9 deletions

View 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)
{
}
}

View file

@ -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)
{
}
}