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
- TokenFactoryBase.cs
- LoginUtil.cs
- XslUrlEditor.cs
- XmlDocumentSerializer.cs
- SchemaImporterExtensionsSection.cs
- Processor.cs
- IconHelper.cs
- MetadataCollection.cs
- RadioButton.cs
- PenContexts.cs
- WebPartChrome.cs
- GestureRecognitionResult.cs
- Util.cs
- DrawingGroupDrawingContext.cs
- XmlNodeChangedEventArgs.cs
- ScrollItemProviderWrapper.cs
- SetStateEventArgs.cs
- DelimitedListTraceListener.cs
- ListDictionary.cs
- TriggerBase.cs
- DataSourceCacheDurationConverter.cs
- BitmapEffectDrawingContextWalker.cs
- TileModeValidation.cs
- XPathDocument.cs
- ViewGenResults.cs
- CodeParameterDeclarationExpression.cs
- NameTable.cs
- ToolstripProfessionalRenderer.cs
- remotingproxy.cs
- TimeSpan.cs
- WebRequest.cs
- FixUpCollection.cs
- DelayLoadType.cs
- ArrayTypeMismatchException.cs
- DBSchemaTable.cs
- ImpersonateTokenRef.cs
- RsaSecurityToken.cs
- UnmanagedMemoryAccessor.cs
- LayoutTableCell.cs
- StoreItemCollection.cs
- DocumentGrid.cs
- TableItemProviderWrapper.cs
- CombinedGeometry.cs
- BindingExpressionUncommonField.cs
- DetailsViewCommandEventArgs.cs
- HttpCacheVary.cs
- Page.cs
- SchemaNames.cs
- ObjectDataSourceStatusEventArgs.cs
- XmlSecureResolver.cs
- ContentFilePart.cs
- Int32AnimationBase.cs
- _ListenerAsyncResult.cs
- ResXResourceSet.cs
- TTSVoice.cs
- ArcSegment.cs
- FixedSOMPageConstructor.cs
- TrackingWorkflowEventArgs.cs
- CustomErrorsSection.cs
- RenderData.cs
- PingReply.cs
- XomlCompilerError.cs
- EntitySetDataBindingList.cs
- IPAddressCollection.cs
- TransactionScope.cs
- TrackingWorkflowEventArgs.cs
- CodeSnippetExpression.cs
- SqlWebEventProvider.cs
- UpdatePanelTrigger.cs
- dataprotectionpermission.cs
- FeatureSupport.cs
- StringKeyFrameCollection.cs
- CustomErrorsSection.cs
- CollectionViewGroup.cs
- InvokeProviderWrapper.cs
- IndentedWriter.cs
- PolicyManager.cs
- ContactManager.cs
- ChangesetResponse.cs
- HttpModuleActionCollection.cs
- ImageAttributes.cs
- WinInetCache.cs
- SoapIncludeAttribute.cs
- RuntimeConfig.cs
- CatchDesigner.xaml.cs
- SafeBitVector32.cs
- ValueUnavailableException.cs
- Keyboard.cs
- TabControlCancelEvent.cs
- ToolStripDropDownItemDesigner.cs
- ListView.cs
- SqlCacheDependencySection.cs
- IntellisenseTextBox.designer.cs
- SqlClientFactory.cs
- TextViewElement.cs
- CodeLabeledStatement.cs
- XmlDataContract.cs
- LingerOption.cs
- ReadOnlyTernaryTree.cs
- PrimarySelectionAdorner.cs