38 references to ApplicationException
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\ToolRuntimeException.cs (1)
25internal ToolRuntimeException(string message) : base(message)
illink (3)
Microsoft.AspNetCore.Diagnostics.Tests (3)
ExceptionHandlerTest.cs (3)
588throw new ApplicationException("Something bad happened."); 679innerAppBuilder.Run(_ => throw new ApplicationException("Something bad happened.")); 718innerAppBuilder.Run(_ => throw new ApplicationException("Something bad happened."));
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisHubLifetimeManagerTests.cs (1)
106ConnectionFactory = _ => throw new ApplicationException("throw from connect")
Microsoft.DotNet.Build.Tasks.VisualStudio (7)
OptProf\FindLatestDrop.cs (4)
59throw new ApplicationException("No drops matching the specified prefix were returned"); 67throw new ApplicationException($"Invalid timestamp: '{item["CreatedDateUtc"]}'"); 74throw new ApplicationException($"Drop has no name: {item}"); 86throw new ApplicationException($"No complete, undeleted drops found");
OptProf\GetRunSettingsSessionConfiguration.cs (3)
84throw new ApplicationException($"Invalid drop URL: '{dropUrl}'"); 103throw new ApplicationException("Invalid value of vsDropName argument: must start with 'Products/'."); 118throw new ApplicationException($"Unable to read config file '{configPath}': {e.Message}");
Microsoft.DotNet.RemoteExecutor (1)
PasteArguments.cs (1)
41throw new ApplicationException("The argv[0] argument cannot include a double quote.");
Microsoft.ML.Core (1)
Data\Repository.cs (1)
435throw new ApplicationException($"Cannot determine product version from assembly {assembly.FullName}.");
Microsoft.ML.TestFramework (1)
PasteArguments.cs (1)
125throw new ApplicationException("The argv[0] argument cannot include a double quote.");
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
53throw new ApplicationException(SR.Format(SR.ResourceTooBig, _sourcePath, System.Int32.MaxValue));
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1343ApplicationException aeAssemblyMissing = new ApplicationException(message);
PresentationFramework (8)
System\Windows\Documents\DocumentReference.cs (2)
272throw new ApplicationException(SR.DocumentReferenceNotFound); 291throw new ApplicationException(SR.DocumentReferenceUnsupportedMimeType);
System\Windows\Documents\DocumentSequence.cs (1)
731throw new ApplicationException(SR.DocumentReferenceHasInvalidDocument);
System\Windows\Documents\PageContent.cs (4)
368throw new ApplicationException(SR.PageContentNotFound); 583throw new ApplicationException(SR.PageContentNotFound); 602throw new ApplicationException(SR.PageContentUnsupportedMimeType); 607throw new ApplicationException(SR.Format(SR.PageContentUnsupportedPageType, o.GetType()));
System\Windows\Markup\BamlMapTable.cs (1)
1624ApplicationException bamlException = new(SR.Format(SR.GetResourceString(id), parameter));
ServerComparison.TestSites (1)
Startup.cs (1)
19throw new ApplicationException("Application exception");
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Reflection\TargetParameterCountException.cs (2)
14: base(SR.Arg_TargetParameterCountException) 20: base(message ?? SR.Arg_TargetParameterCountException)
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandleCannotBeOpenedException.cs (2)
14public WaitHandleCannotBeOpenedException() : base(SR.Threading_WaitHandleCannotBeOpenedException) 19public WaitHandleCannotBeOpenedException(string? message) : base(message ?? SR.Threading_WaitHandleCannotBeOpenedException)
src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.WaitableObject.Unix.cs (1)
765throw new ApplicationException(SR.Arg_SynchronizationLockException);
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
660ex = new ApplicationException(ex.Message);
src\System\StubHelpers.cs (2)
955throw new ApplicationException(SR.Format(SR.CustomMarshaler_NoGetInstanceMethod, marshalerType.FullName)); 963throw new ApplicationException(SR.Format(SR.CustomMarshaler_NullReturnForGetInstance, marshalerType.FullName));
System.Threading (1)
System\Threading\ReaderWriterLock.cs (1)
1132: base(SR.Format(message, SR.Format(SR.ExceptionFromHResult, errorHResult)))