parent
4f0e365dd5
commit
a8aaca42cc
@ -0,0 +1,16 @@
|
||||
namespace Recyclarr.Common;
|
||||
|
||||
public class ConflictingYamlFilesException : Exception
|
||||
{
|
||||
public ConflictingYamlFilesException(IEnumerable<string> supportedFiles)
|
||||
: base(BuildMessage(supportedFiles))
|
||||
{
|
||||
}
|
||||
|
||||
private static string BuildMessage(IEnumerable<string> supportedFiles)
|
||||
{
|
||||
return
|
||||
"Expected only 1 of the following files to exist, but found more than one: " +
|
||||
string.Join(", ", supportedFiles);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue