Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PolicyManager.cs
- KerberosSecurityTokenProvider.cs
- RuleInfoComparer.cs
- CqlIdentifiers.cs
- DefaultSection.cs
- DbParameterCollection.cs
- SystemBrushes.cs
- GetCardDetailsRequest.cs
- loginstatus.cs
- DesignerUtils.cs
- DecoderFallbackWithFailureFlag.cs
- ObjectTokenCategory.cs
- TagMapInfo.cs
- ErrorRuntimeConfig.cs
- BindingRestrictions.cs
- SubstitutionDesigner.cs
- NameValuePermission.cs
- mansign.cs
- StrokeFIndices.cs
- DrawingContextWalker.cs
- BackgroundFormatInfo.cs
- WebServiceErrorEvent.cs
- MultiSelectRootGridEntry.cs
- StoreAnnotationsMap.cs
- BufferedOutputStream.cs
- dtdvalidator.cs
- FormViewModeEventArgs.cs
- ClientSideProviderDescription.cs
- webeventbuffer.cs
- UpDownEvent.cs
- RemotingConfigParser.cs
- SqlLiftWhereClauses.cs
- XmlImplementation.cs
- MetadataException.cs
- PointF.cs
- FamilyMapCollection.cs
- PageRouteHandler.cs
- SqlUserDefinedTypeAttribute.cs
- HostProtectionPermission.cs
- NavigationWindow.cs
- IdentifierService.cs
- ConsoleCancelEventArgs.cs
- AsyncResult.cs
- Queue.cs
- OperationResponse.cs
- StylusDownEventArgs.cs
- SubstitutionList.cs
- SelectionProcessor.cs
- ApplicationException.cs
- NullableLongSumAggregationOperator.cs
- FormView.cs
- GlyphRun.cs
- MimeObjectFactory.cs
- RadioButtonFlatAdapter.cs
- CircleHotSpot.cs
- IndicShape.cs
- ServerTooBusyException.cs
- HotSpotCollectionEditor.cs
- ContractsBCL.cs
- latinshape.cs
- securitycriticaldataformultiplegetandset.cs
- TableLayoutStyleCollection.cs
- QueueProcessor.cs
- WinEventTracker.cs
- TextDecoration.cs
- Peer.cs
- AssemblyUtil.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TimeSpanSecondsConverter.cs
- ControlEvent.cs
- RelationshipWrapper.cs
- TreeNodeBinding.cs
- CompositeActivityDesigner.cs
- CommonProperties.cs
- PrintDialog.cs
- Types.cs
- QueryExtender.cs
- Semaphore.cs
- TextRunCache.cs
- MetadataProperty.cs
- BindableAttribute.cs
- SaveFileDialog.cs
- RecommendedAsConfigurableAttribute.cs
- linebase.cs
- OutKeywords.cs
- ObjectQueryExecutionPlan.cs
- SqlNode.cs
- TypeUtils.cs
- ModuleBuilder.cs
- WebBrowserContainer.cs
- AnonymousIdentificationSection.cs
- xmlglyphRunInfo.cs
- ContentPosition.cs
- XpsImage.cs
- WebDisplayNameAttribute.cs
- FieldTemplateFactory.cs
- TabPage.cs
- ItemMap.cs
- SingleConverter.cs
- AsymmetricSignatureFormatter.cs