Code:
/ DotNET / DotNET / 8.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
- QueryOutputWriter.cs
- GridItemProviderWrapper.cs
- InternalSafeNativeMethods.cs
- MembershipValidatePasswordEventArgs.cs
- NetworkInformationPermission.cs
- XmlObjectSerializerContext.cs
- MsmqTransportBindingElement.cs
- KeyTimeConverter.cs
- StdRegProviderWrapper.cs
- CodeGenerator.cs
- UrlAuthFailedErrorFormatter.cs
- SecureStringHasher.cs
- TogglePattern.cs
- CreateUserWizardStep.cs
- IPEndPointCollection.cs
- Pointer.cs
- SoapCommonClasses.cs
- HandleCollector.cs
- TrayIconDesigner.cs
- UserCancellationException.cs
- Helpers.cs
- DocumentGridPage.cs
- SpellCheck.cs
- CannotUnloadAppDomainException.cs
- TreeNodeCollectionEditorDialog.cs
- FamilyMap.cs
- Sql8ExpressionRewriter.cs
- CommonGetThemePartSize.cs
- TrimSurroundingWhitespaceAttribute.cs
- SynchronizationContext.cs
- MsmqInputMessage.cs
- UnsafeNativeMethodsMilCoreApi.cs
- XamlSerializationHelper.cs
- VirtualizingStackPanel.cs
- ApplicationHost.cs
- ActivityMarkupSerializationProvider.cs
- RenderCapability.cs
- FrameworkContentElementAutomationPeer.cs
- VisualStyleInformation.cs
- RadioButtonPopupAdapter.cs
- ImageClickEventArgs.cs
- NavigationExpr.cs
- WriteableBitmap.cs
- IImplicitResourceProvider.cs
- ObjectDataSourceEventArgs.cs
- ColorTranslator.cs
- MessageDescriptionCollection.cs
- CodeAccessPermission.cs
- ProjectionQueryOptionExpression.cs
- AlgoModule.cs
- SimpleHandlerFactory.cs
- PreviewPageInfo.cs
- List.cs
- Button.cs
- ListViewTableRow.cs
- TimeSpan.cs
- EvidenceTypeDescriptor.cs
- PropertyIDSet.cs
- StackSpiller.Generated.cs
- AssemblyCache.cs
- UnionCodeGroup.cs
- HealthMonitoringSectionHelper.cs
- SettingsBindableAttribute.cs
- ViewDesigner.cs
- HyperLinkStyle.cs
- ByteRangeDownloader.cs
- Visual3D.cs
- Size3DValueSerializer.cs
- SourceInterpreter.cs
- MarginsConverter.cs
- IndexingContentUnit.cs
- DoubleConverter.cs
- ManagementBaseObject.cs
- login.cs
- ExtenderHelpers.cs
- HttpResponseWrapper.cs
- XmlAttribute.cs
- IFlowDocumentViewer.cs
- DataGridViewSortCompareEventArgs.cs
- EndpointDiscoveryMetadata11.cs
- DataServiceClientException.cs
- TransformerTypeCollection.cs
- ScrollEventArgs.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DictionarySectionHandler.cs
- ISAPIRuntime.cs
- SingleAnimationUsingKeyFrames.cs
- PageThemeParser.cs
- SecurityTokenProviderContainer.cs
- webproxy.cs
- XPathNodeList.cs
- CodeTypeParameter.cs
- CommandDesigner.cs
- ExpressionNode.cs
- ServiceOperationInvoker.cs
- AxisAngleRotation3D.cs
- DataControlButton.cs
- AsyncResult.cs
- FormsAuthenticationEventArgs.cs
- RowUpdatedEventArgs.cs