onebeyond/onebeyond-studio-file-storage

View on GitHub
src/OneBeyond.Studio.FileStorage.Domain/Exceptions/FileNotAllowedException.cs

Summary

Maintainability
A
0 mins
Test Coverage
namespace OneBeyond.Studio.FileStorage.Domain.Exceptions;

/// <summary>
/// </summary>
public sealed class FileNotAllowedException : FileStorageException
{
    /// <summary>
    /// </summary>
    /// <param name="fileName"></param>
    /// <param name="fileContentType"></param>
    public FileNotAllowedException(string fileName, string fileContentType)
        : base($"File '{fileName}' with '{fileContentType}' content type is not allowed for uploading")
    {
    }
}