Advertisement
Guest User

Common Language Runtime Exceptions from Visual Studio 2017

a guest
Aug 10th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 19.37 KB | None | 0 0
  1. Hitting CTRL+ALT+E in Visual Studio, gives you a list of Common Language Runtime Exceptions. I parsed the list using ShareX's "Text Capture" tool. To help spot typos (from the "Text Capture" tool) and missing exceptions, I pasted them into a blank Visual Studio C# Console App project file as so:
  2. class Program {
  3.    static void Foo<T>() { }
  4.    static void Main() {
  5.        Foo<  System.AccessViolationExample  >();
  6.        // The rest of the list, with "Foo<  " prefixing and "  >();" suffixing each line
  7.    }
  8. }
  9.  
  10. // Common Language Runtime Exceptions from Visual Studio 2017
  11. Microsoft.JScript.JScriptException
  12. System.AccessViolationException
  13. System.AggregateException
  14. System.AppDomainUnloadedException
  15. System.ApplicationException
  16. System.ArgumentException
  17. System.ArgumentNullException
  18. System.ArgumentOutOfRangeException
  19. System.ArithmeticException
  20. System.ArrayTypeMismatchException
  21. System.BadImageFormatException
  22. System.CannotUnloadAppDomainException
  23. System.Collections.Generic.KeyNotFoundException
  24. System.ComponentModel.Composition.ChangeRejectedException
  25. System.ComponentModel.Composition.CompositionContractMismatchException
  26. System.ComponentModel.Composition.CompositionException
  27. System.ComponentModel.Composition.ImportCardinalityMismatchException
  28. System.ComponentModel.Composition.Primitives.ComposablePartException
  29. System.ComponentModel.DataAnnotations.ValidationException
  30. System.ComponentModel.Design.CheckoutException
  31. System.ComponentModel.Design.ExceptionCollection
  32. System.ComponentModel.Design.Serialization.CodeDomSerializerException
  33. System.ComponentModel.InvalidEnumArgumentException
  34. System.ComponentModel.LicenseException
  35. System.ComponentModel.WarningException
  36. System.ComponentModel.Win32Exception
  37. System.Configuration.ConfigurationErrorsException
  38. System.Configuration.ConfigurationException
  39. System.Configuration.Install.InstallException
  40. System.Configuration.Provider.ProviderException
  41. // System.Configuration.SettingsPropertyCannotBeSetForAnonymousUserException  // This seems to have never existed in any .net RTM: http://dotnetcore.de/ClassReference/System.Configuration.aspx
  42. System.Configuration.SettingsPropertyIsReadOnlyException
  43. System.Configuration.SettingsPropertyNotFoundException
  44. System.Configuration.SettingsPropertyWrongTypeException
  45. System.ContextMarshalException
  46. System.Data.Common.DbException
  47. System.Data.ConstraintException
  48. System.Data.DataException
  49. System.Data.DBConcurrencyException
  50. System.Data.DeletedRowInaccessibleException
  51. System.Data.DuplicateNameException
  52. System.Data.EvaluateException
  53. System.Data.InRowChangingEventException
  54. System.Data.InvalidConstraintException
  55. System.Data.InvalidExpressionException
  56. System.Data.Linq.ChangeConflictException
  57. System.Data.Linq.DuplicateKeyException
  58. System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException
  59. System.Data.MissingPrimaryKeyException
  60. System.Data.NoNullAllowedException
  61. System.Data.Odbc.OdbcException
  62. System.Data.OleDb.OleDbException
  63. System.Data.OperationAbortedException
  64. System.Data.OracleClient.OracleException
  65. System.Data.ReadOnlyException
  66. System.Data.RowNotInTableException
  67. System.Data.SqlClient.SqlException
  68. // System.Data.SqlTypes.SqlException  // This seems to have never existed. Likely is a bug in Visual Studio. SqlClient.SqlException DOES exist, however.
  69. System.Data.SqlTypes.SqlNotFilledException
  70. System.Data.SqlTypes.SqlNullValueException
  71. System.Data.SqlTypes.SqlTruncateException
  72. System.Data.SqlTypes.SqlTypeException
  73. System.Data.StrongTypingException
  74. System.Data.SyntaxErrorException
  75. System.Data.TypedDataSetGeneratorException
  76. System.Data.VersionNotFoundException
  77. System.DataMisalignedException
  78. System.Deployment.Application.DependentPlatformMissingException
  79. System.Deployment.Application.DeploymentDownloadException
  80. System.Deployment.Application.DeploymentException
  81. System.Deployment.Application.InvalidDeploymentException
  82. System.Deployment.Application.TrustNotGrantedException
  83. System.Diagnostics.Eventing.Reader.EventLogException
  84. System.Diagnostics.Eventing.Reader.EventLogInvalidDataException
  85. System.Diagnostics.Eventing.Reader.EventLogNotFoundException
  86. System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException
  87. System.Diagnostics.Eventing.Reader.EventLogReadingException
  88. System.DirectoryServices.AccountManagement.MultipleMatchesException
  89. System.DirectoryServices.AccountManagement.NoMatchingPrincipalException
  90. System.DirectoryServices.AccountManagement.PasswordException
  91. System.DirectoryServices.AccountManagement.PrincipalException
  92. System.DirectoryServices.AccountManagement.PrincipalExistsException
  93. System.DirectoryServices.AccountManagement.PrincipalOperationException
  94. System.DirectoryServices.AccountManagement.PrincipalServerDownException
  95. System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectExistsException
  96. System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException
  97. System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException
  98. System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException
  99. System.DirectoryServices.ActiveDirectory.ForestTrustCollisionException
  100. System.DirectoryServices.ActiveDirectory.SyncFromAllServersOperationException
  101. System.DirectoryServices.DirectoryServicesCOMException
  102. System.DirectoryServices.Protocols.BerConversionException
  103. System.DirectoryServices.Protocols.DirectoryException
  104. System.DirectoryServices.Protocols.DirectoryOperationException
  105. System.DirectoryServices.Protocols.DsmlInvalidDocumentException
  106. System.DirectoryServices.Protocols.ErrorResponseException
  107. System.DirectoryServices.Protocols.LdapException
  108. System.DirectoryServices.Protocols.TlsOperationException
  109. System.DivideByZeroException
  110. System.DllNotFoundException
  111. System.Drawing.Printing.InvalidPrinterException
  112. System.DuplicateWaitObjectException
  113. System.EnterpriseServices.RegistrationException
  114. System.EnterpriseServices.ServicedComponentException
  115. System.EntryPointNotFoundException
  116. System.Exception
  117. System.ExecutionEngineException
  118. System.FieldAccessException
  119. System.FormatException
  120. System.IdentityModel.Selectors.CardSpaceException
  121. System.IdentityModel.Selectors.IdentityValidationException
  122. System.IdentityModel.Selectors.PolicyValidationException
  123. System.IdentityModel.Selectors.ServiceBusyException
  124. System.IdentityModel.Selectors.ServiceNotStartedException
  125. System.IdentityModel.Selectors.StsCommunicationException
  126. System.IdentityModel.Selectors.UnsupportedPolicyOptionsException
  127. System.IdentityModel.Selectors.UntrustedRecipientException
  128. System.IdentityModel.Selectors.UserCancellationException
  129. System.IdentityModel.Tokens.SecurityTokenException
  130. System.IdentityModel.Tokens.SecurityTokenValidationException
  131. System.IndexOutOfRangeException
  132. System.InsufficientMemoryException
  133. System.InvalidCastException
  134. System.InvalidOperationException
  135. System.InvalidProgramException
  136. System.InvalidTimeZoneException
  137. System.IO.DirectoryNotFoundException
  138. System.IO.DriveNotFoundException
  139. System.IO.EndOfStreamException
  140. System.IO.FileFormatException // Note: Needs "WindowsBase" assembly reference
  141. System.IO.FileLoadException
  142. System.IO.FileNotFoundException
  143. System.IO.InternalBufferOverflowException
  144. System.IO.InvalidDataException
  145. System.IO.IOException
  146. System.IO.IsolatedStorage.IsolatedStorageException
  147. System.IO.Log.ReservationNotFoundException
  148. System.IO.Log.SequenceFullException
  149. System.IO.PathTooLongException
  150. System.IO.PipeException
  151. // NOTE: System.Management.Automation requires Nuget package: System.Management.Automation_PowerShell_3.0
  152. System.Management.Automation.ActionPreferenceStopException
  153. System.Management.Automation.ApplicationFailedException
  154. System.Management.Automation.ArgumentTransformationMetadataException
  155. System.Management.Automation.CmdletInvocationException
  156. System.Management.Automation.CmdletProviderInvocationException
  157. System.Management.Automation.CommandNotFoundException
  158. System.Management.Automation.DriveNotFoundException
  159. System.Management.Automation.ExtendedTypeSystemException
  160. System.Management.Automation.GetValueException
  161. System.Management.Automation.GetValueInvocationException
  162. System.Management.Automation.HaltCommandException
  163. System.Management.Automation.Host.HostException
  164. System.Management.Automation.Host.PromptingException
  165. System.Management.Automation.IncompleteParseException
  166. System.Management.Automation.ItemNotFoundException
  167. System.Management.Automation.MetadataException
  168. System.Management.Automation.MethodException
  169. System.Management.Automation.MethodInvocationException
  170. System.Management.Automation.ParameterBindingException
  171. System.Management.Automation.ParentContainsErrorRecordException
  172. System.Management.Automation.ParseException
  173. System.Management.Automation.ParsingMetadataException
  174. System.Management.Automation.PipelineClosedException
  175. System.Management.Automation.PipelineStoppedException
  176. System.Management.Automation.ProviderInvocationException
  177. System.Management.Automation.ProviderNameAmbiguousException
  178. System.Management.Automation.ProviderNotFoundException
  179. System.Management.Automation.PSArgumentException
  180. System.Management.Automation.PSArgumentNullException
  181. System.Management.Automation.PSArgumentOutOfRangeException
  182. System.Management.Automation.PSInvalidCastException
  183. System.Management.Automation.PSInvalidOperationException
  184. System.Management.Automation.PSNotImplementedException
  185. System.Management.Automation.PSNotSupportedException
  186. System.Management.Automation.PSObjectDisposedException
  187. System.Management.Automation.PSSecurityException
  188. System.Management.Automation.RedirectedException
  189. System.Management.Automation.RemoteException
  190. System.Management.Automation.Runspaces.InvalidPipelineStateException
  191. System.Management.Automation.Runspaces.InvalidRunspaceStateException
  192. System.Management.Automation.Runspaces.PSConsoleLoadException
  193. System.Management.Automation.Runspaces.PSSnapInException
  194. System.Management.Automation.Runspaces.RunspaceConfigurationAttributeException
  195. System.Management.Automation.Runspaces.RunspaceConfigurationTypeException
  196. System.Management.Automation.RuntimeException
  197. System.Management.Automation.ScriptCallDepthException
  198. System.Management.Automation.ScriptRequiresException
  199. System.Management.Automation.SessionStateException
  200. System.Management.Automation.SessionStateOverflowException
  201. System.Management.Automation.SessionStateUnauthorizedAccessException
  202. System.Management.Automation.SetValueException
  203. System.Management.Automation.SetValueInvocationException
  204. System.Management.Automation.ValidationMetadataException
  205. System.Management.Automation.WildcardPatternException
  206. // NOTE: System.Management.Automation requires Nuget package: System.Management.Automation_PowerShell_3.0
  207. System.Management.Instrumentation.InstanceNotFoundException
  208. System.Management.Instrumentation.WmiProviderInstallationException
  209. System.Management.Instrumentation.InstrumentationBaseException
  210. System.Management.Instrumentation.InstrumentationException
  211. System.Management.ManagementException
  212. System.MemberAccessException
  213. System.Messaging.MessageQueueException
  214. System.MethodAccessException
  215. System.MissingFieldException
  216. System.MissingMemberException
  217. System.MissingMethodException
  218. System.MulticastNotSupportedException
  219. System.Net.CookieException
  220. System.Net.HttpListenerException
  221. System.Net.Mail.SmtpException
  222. System.Net.Mail.SmtpFailedRecipientException
  223. System.Net.Mail.SmtpFailedRecipientsException
  224. System.Net.NetworkInformation.NetworkInformationException
  225. System.Net.NetworkInformation.PingException
  226. System.Net.PeerToPeer.PeerToPeerException
  227. System.Net.ProtocolViolationException
  228. System.Net.Sockets.SocketException
  229. System.Net.WebException
  230. // System.NotCancelableException  // Assembly reference is unknown, or cannot be accessed
  231. System.NotFiniteNumberException
  232. System.NotImplementedException
  233. System.NotSupportedException
  234. System.NullReferenceException
  235. System.ObjectDisposedException
  236. System.OperationCanceledException
  237. System.OutOfMemoryException
  238. System.OverflowException
  239. System.PlatformNotSupportedException
  240. System.Printing.PrintCommitAttributesException
  241. System.Printing.PrintingCanceledException
  242. System.Printing.PrintJobException
  243. System.Printing.PrintQueueException
  244. System.Printing.PrintServerException
  245. System.Printing.PrintSystemException
  246. System.RankException
  247. System.Reflection.AmbiguousMatchException
  248. System.Reflection.InvalidFilterCriteriaException
  249. // System.Reflection.MissingMetadataException  // Assembly reference is unknown, or cannot be accessed
  250. // System.Reflection.MissingRuntimeArtifactException  // Assembly reference is unknown, or cannot be accessed
  251. System.Reflection.ReflectionTypeLoadException
  252. System.Reflection.TargetException
  253. System.Reflection.TargetInvocationException
  254. System.Reflection.TargetParameterCountException
  255. System.Resources.MissingManifestResourceException
  256. System.Resources.MissingSatelliteAssemblyException
  257. System.Runtime.InteropServices.COMException
  258. // System.Runtime.InteropServices.ComObjectInUseException  // Assembly reference is unknown, or cannot be accessed
  259. System.Runtime.InteropServices.ExternalException
  260. System.Runtime.InteropServices.InvalidComObjectException
  261. System.Runtime.InteropServices.InvalidOleVariantTypeException
  262. System.Runtime.InteropServices.MarshalDirectiveException
  263. System.Runtime.InteropServices.SafeArrayRankMismatchException
  264. System.Runtime.InteropServices.SafeArrayTypeMismatchException
  265. System.Runtime.InteropServices.SEHException
  266. System.Runtime.Remoting.MetadataServices.SUDSGeneratorException
  267. System.Runtime.Remoting.MetadataServices.SUDSParserException
  268. System.Runtime.Remoting.RemotingException
  269. System.Runtime.Remoting.RemotingTimeoutException
  270. System.Runtime.Remoting.ServerException
  271. System.Runtime.Serialization.InvalidDataContractException
  272. System.Runtime.Serialization.SerializationException
  273. System.Security.AccessControl.PrivilegeNotHeldException
  274. System.Security.Authentication.AuthenticationException
  275. System.Security.Authentication.InvalidCredentialException
  276. System.Security.Cryptography.CryptographicException
  277. System.Security.Cryptography.CryptographicUnexpectedOperationException
  278. System.Security.HostProtectionException
  279. System.Security.Policy.PolicyException
  280. System.Security.Principal.IdentityNotMappedException
  281. System.Security.RightsManagement.RightsManagementException
  282. System.Security.SecurityException
  283. System.Security.VerificationException
  284. System.Security.XmlSyntaxException
  285. System.ServiceModel.ActionNotSupportedException
  286. System.ServiceModel.AddressAccessDeniedException
  287. System.ServiceModel.AddressAlreadyInUseException
  288. System.ServiceModel.Channels.InvalidChannelBindingException
  289. // System.ServiceModel.Channels.PnrpPeerResolver+PnrpException // Seems to be an internal exception, but base of PnrpException is SocketException
  290. System.ServiceModel.ChannelTerminatedException
  291. System.ServiceModel.CommunicationException
  292. System.ServiceModel.CommunicationObjectAbortedException
  293. System.ServiceModel.CommunicationObjectFaultedException
  294. System.ServiceModel.Dispatcher.FilterInvalidBodyAccessException
  295. System.ServiceModel.Dispatcher.InvalidBodyAccessException
  296. System.ServiceModel.Dispatcher.MessageFilterException
  297. System.ServiceModel.Dispatcher.MultipleFilterMatchesException
  298. System.ServiceModel.Dispatcher.NavigatorInvalidBodyAccessException
  299. System.ServiceModel.Dispatcher.XPathNavigatorException
  300. System.ServiceModel.EndpointNotFoundException
  301. System.ServiceModel.FaultException
  302. System.ServiceModel.FaultException
  303. System.ServiceModel.InvalidMessageContractException
  304. System.ServiceModel.MessageHeaderException
  305. System.ServiceModel.MsmqException
  306. System.ServiceModel.MsmqPoisonMessageException
  307. System.ServiceModel.PoisonMessageException
  308. System.ServiceModel.ProtocolException
  309. System.ServiceModel.QuotaExceededException
  310. System.ServiceModel.Security.ExpiredSecurityTokenException
  311. System.ServiceModel.Security.MessageSecurityException
  312. System.ServiceModel.Security.SecurityAccessDeniedException
  313. System.ServiceModel.Security.SecurityNegotiationException
  314. System.ServiceModel.ServerTooBusyException
  315. System.ServiceModel.ServiceActivationException
  316. System.ServiceProcess.TimeoutException
  317. System.StackOverflowException
  318. System.SystemException
  319. System.Text.DecoderFallbackException
  320. System.Text.EncoderFallbackException
  321. System.Threading.AbandonedMutexException
  322. System.Threading.LockRecursionException
  323. System.Threading.SemaphoreFullException
  324. System.Threading.SynchronizationLockException
  325. System.Threading.Tasks.TaskCanceledException
  326. System.Threading.ThreadAbortException
  327. System.Threading.ThreadInterruptedException
  328. System.Threading.ThreadStartException
  329. System.Threading.ThreadStateException
  330. System.Threading.WaitHandleCannotBeOpenedException
  331. System.TimeoutException
  332. System.TimeZoneNotFoundException
  333. System.Transactions.TransactionAbortedException
  334. System.Transactions.TransactionException
  335. System.Transactions.TransactionInDoubtException
  336. System.Transactions.TransactionManagerCommunicationException
  337. System.Transactions.TransactionPromotionException
  338. System.TypeAccessException
  339. System.TypeInitializationException
  340. System.TypeLoadException
  341. System.TypeUnloadedException
  342. System.UnauthorizedAccessException
  343. System.UriFormatException
  344. System.Web.Caching.DatabaseNotEnabledForNotificationException
  345. System.Web.Caching.TableNotEnabledForNotificationException
  346. System.Web.HttpCompileException
  347. System.Web.HttpException
  348. System.Web.HttpParseException
  349. System.Web.HttpRequestValidationException
  350. System.Web.HttpUnhandledException
  351. System.Web.Management.SqlExecutionException
  352. System.Web.Security.MembershipCreateUserException
  353. System.Web.Security.MembershipPasswordException
  354. System.Web.Services.Protocols.SoapException
  355. System.Web.Services.Protocols.SoapHeaderException
  356. System.Web.UI.ViewStateException
  357. System.Windows.Automation.ElementNotAvailableException
  358. System.Windows.Automation.ElementNotEnabledException
  359. System.Windows.Automation.NoClickablePointException
  360. System.Windows.Automation.ProxyAssemblyNotLoadedException
  361. System.Windows.Controls.PrintDialogException
  362. System.Windows.Forms.AxHost.InvalidActiveXStateException
  363. System.Windows.Markup.XamlParseException
  364. System.Windows.Media.Animation.AnimationException
  365. System.Windows.Media.InvalidWmpVersionException
  366. System.Windows.ResourceReferenceKeyNotFoundException
  367. System.Windows.Xps.XpsException
  368. System.Windows.Xps.XpsPackagingException
  369. System.Windows.Xps.XpsSerializationException
  370. System.Windows.Xps.XpsWriterException
  371. System.Workflow.Activities.EventDeliveryFailedException
  372. System.Workflow.Activities.Rules.RuleEvaluationException
  373. System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException
  374. System.Workflow.Activities.Rules.RuleException
  375. System.Workflow.Activities.Rules.RuleSetValidationException
  376. System.Workflow.Activities.WorkflowAuthorizationException
  377. System.Workflow.ComponentModel.Compiler.WorkflowValidationFailedException
  378. System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationException
  379. System.Workflow.ComponentModel.WorkflowTerminatedException
  380. System.Workflow.Runtime.Hosting.PersistenceException
  381. System.Workflow.Runtime.Tracking.TrackingProfileDeserializationException
  382. System.Workflow.Runtime.WorkflowOwnershipException
  383. System.Xml.Schema.XmlSchemaException
  384. System.Xml.Schema.XmlSchemaInferenceException
  385. System.Xml.Schema.XmlSchemaValidationException
  386. System.Xml.XmlException
  387. System.Xml.XPath.XPathException
  388. System.Xml.Xsl.XsltCompileException
  389. System.Xml.Xsl.XsltException
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement