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
- MemberExpression.cs
- NetworkCredential.cs
- HttpListenerPrefixCollection.cs
- WebMessageEncodingBindingElement.cs
- TogglePatternIdentifiers.cs
- ComponentResourceKey.cs
- WebPartManagerInternals.cs
- UIPermission.cs
- _ProxyChain.cs
- CellConstantDomain.cs
- Pair.cs
- BooleanKeyFrameCollection.cs
- ImageClickEventArgs.cs
- OdbcPermission.cs
- DateTimeConverter2.cs
- TcpServerChannel.cs
- TabPage.cs
- ToolboxItemAttribute.cs
- ADRoleFactory.cs
- Table.cs
- DataMisalignedException.cs
- IConvertible.cs
- SiteMapDataSource.cs
- BooleanKeyFrameCollection.cs
- Menu.cs
- TimeSpanValidatorAttribute.cs
- ControlCollection.cs
- FileDialogPermission.cs
- SudsCommon.cs
- RegionInfo.cs
- TableCellCollection.cs
- PrintPreviewGraphics.cs
- UpdatePanelControlTrigger.cs
- base64Transforms.cs
- TextComposition.cs
- DefaultPropertyAttribute.cs
- TransformCollection.cs
- WebPartZoneAutoFormat.cs
- XslNumber.cs
- InternalCache.cs
- XamlPoint3DCollectionSerializer.cs
- CodeDelegateInvokeExpression.cs
- SemaphoreSecurity.cs
- PointAnimationBase.cs
- AmbientLight.cs
- SrgsOneOf.cs
- StrokeCollection2.cs
- DataRecordObjectView.cs
- ComboBox.cs
- IdentityNotMappedException.cs
- Registry.cs
- SizeIndependentAnimationStorage.cs
- Table.cs
- DataBindingExpressionBuilder.cs
- DocumentViewerAutomationPeer.cs
- PerformanceCounters.cs
- DBBindings.cs
- Rule.cs
- New.cs
- dtdvalidator.cs
- NameTable.cs
- DSASignatureFormatter.cs
- PathGeometry.cs
- HtmlListAdapter.cs
- RealProxy.cs
- StackOverflowException.cs
- EventEntry.cs
- GPStream.cs
- FrameworkName.cs
- EntityDataSourceState.cs
- OracleString.cs
- ListBoxChrome.cs
- SerialPort.cs
- WindowsListView.cs
- StreamGeometryContext.cs
- SqlSupersetValidator.cs
- xmlsaver.cs
- RelatedImageListAttribute.cs
- ButtonFieldBase.cs
- Lease.cs
- SmtpClient.cs
- WindowsRegion.cs
- HMACSHA384.cs
- X509CertificateValidator.cs
- Menu.cs
- ByeMessage11.cs
- CompilerState.cs
- JobStaple.cs
- Maps.cs
- StorageMappingItemLoader.cs
- HttpHeaderCollection.cs
- EndpointIdentity.cs
- ContractInferenceHelper.cs
- CreateCardRequest.cs
- DefaultClaimSet.cs
- ItemCheckedEvent.cs
- UIInitializationException.cs
- OutputCacheProfileCollection.cs
- QueryExpression.cs
- Ray3DHitTestResult.cs