Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / ApplicationException.cs / 1 / ApplicationException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: ApplicationException ** ** ** Purpose: The base class for all "less serious" exceptions that must be ** declared or caught. ** ** =============================================================================*/ namespace System { using System.Runtime.Serialization; // The ApplicationException is the base class for nonfatal, // application errors that occur. These exceptions are generated // (i.e., thrown) by an application, not the Runtime. Applications that need // to create their own exceptions do so by extending this class. // ApplicationException extends but adds no new functionality to // RecoverableException. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class ApplicationException : Exception { // Creates a new ApplicationException with its message string set to // the empty string, its HRESULT set to COR_E_APPLICATION, // and its ExceptionInfo reference set to null. public ApplicationException() : base(Environment.GetResourceString("Arg_ApplicationException")) { SetErrorCode(__HResults.COR_E_APPLICATION); } // Creates a new ApplicationException with its message string set to // message, its HRESULT set to COR_E_APPLICATION, // and its ExceptionInfo reference set to null. // public ApplicationException(String message) : base(message) { SetErrorCode(__HResults.COR_E_APPLICATION); } public ApplicationException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_APPLICATION); } protected ApplicationException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- httpstaticobjectscollection.cs
- ExtensionsSection.cs
- WorkflowRuntimeServiceElement.cs
- FontDriver.cs
- ACL.cs
- StatusBarPanelClickEvent.cs
- MsmqIntegrationInputChannel.cs
- NestedContainer.cs
- Dynamic.cs
- SchemaNotation.cs
- ScrollPatternIdentifiers.cs
- PathData.cs
- SerializationInfoEnumerator.cs
- SqlLiftWhereClauses.cs
- TextDecoration.cs
- DesignerDataTable.cs
- TimeZoneInfo.cs
- ReadOnlyNameValueCollection.cs
- WebProxyScriptElement.cs
- QueryTaskGroupState.cs
- COSERVERINFO.cs
- MultiBinding.cs
- VoiceObjectToken.cs
- oledbconnectionstring.cs
- WebRequestModulesSection.cs
- HtmlGenericControl.cs
- TemplateComponentConnector.cs
- SiteMapPathDesigner.cs
- MappingModelBuildProvider.cs
- Profiler.cs
- TypeSource.cs
- StaticTextPointer.cs
- ArraySubsetEnumerator.cs
- InputLangChangeRequestEvent.cs
- FormsAuthenticationCredentials.cs
- TextEffect.cs
- Errors.cs
- BamlReader.cs
- TypeUnloadedException.cs
- XmlStreamStore.cs
- StringConverter.cs
- UnmanagedMemoryStreamWrapper.cs
- Properties.cs
- ECDsaCng.cs
- OleDbEnumerator.cs
- CreateUserWizardStep.cs
- CustomError.cs
- safelinkcollection.cs
- PaginationProgressEventArgs.cs
- StaticSiteMapProvider.cs
- ConfigurationSettings.cs
- CFGGrammar.cs
- ButtonStandardAdapter.cs
- Binding.cs
- XamlWriter.cs
- RSACryptoServiceProvider.cs
- TypeForwardedToAttribute.cs
- PropertyMetadata.cs
- IfJoinedCondition.cs
- Soap12ProtocolReflector.cs
- WebDisplayNameAttribute.cs
- MethodImplAttribute.cs
- PeerToPeerException.cs
- VariableQuery.cs
- PersonalizationProvider.cs
- SystemShuttingDownException.cs
- ContextMenu.cs
- ExtentKey.cs
- XmlSchemaRedefine.cs
- CapabilitiesRule.cs
- OptimizerPatterns.cs
- MissingMemberException.cs
- DataGridColumnCollection.cs
- OdbcConnectionOpen.cs
- SetUserLanguageRequest.cs
- DLinqAssociationProvider.cs
- SqlUnionizer.cs
- PtsCache.cs
- NumericExpr.cs
- NavigationProperty.cs
- HttpListenerException.cs
- ControlCollection.cs
- ChameleonKey.cs
- TextRangeSerialization.cs
- ISFTagAndGuidCache.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ListViewItemMouseHoverEvent.cs
- XPathScanner.cs
- FileDetails.cs
- Activator.cs
- ListViewDeleteEventArgs.cs
- MachineKeyConverter.cs
- PageStatePersister.cs
- RelationshipDetailsRow.cs
- ToolStripDropDownClosedEventArgs.cs
- PersistChildrenAttribute.cs
- ComponentEditorForm.cs
- SystemIPAddressInformation.cs
- CssStyleCollection.cs
- DelegateHelpers.cs