diff --git a/FileProcessor/Common/Extensions.cs b/FileProcessor/Common/Extensions.cs index 113598e..0705392 100644 --- a/FileProcessor/Common/Extensions.cs +++ b/FileProcessor/Common/Extensions.cs @@ -78,7 +78,7 @@ public static void PreWarm(this IApplicationBuilder applicationBuilder){ if (fileProfilesResult.IsFailed) { Logger.LogWarning($"Error getting file profiles {fileProfilesResult.Message}"); - throw new ApplicationException(fileProfilesResult.Message); + throw new ApplicationStartupException(fileProfilesResult.Message); } List fileProfiles = fileProfilesResult.Data; @@ -113,4 +113,12 @@ public static void PreWarm(this IApplicationBuilder applicationBuilder){ Extensions.log, subscriptionRepositoryResolver).Wait(CancellationToken.None); } + + public sealed class ApplicationStartupException : Exception + { + public ApplicationStartupException(string message) + : base(message) + { + } + } } \ No newline at end of file