Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- HtmlTable.cs
- ReversePositionQuery.cs
- _ProxyRegBlob.cs
- ResponseBodyWriter.cs
- PrintingPermissionAttribute.cs
- UIElementParagraph.cs
- ResolvedKeyFrameEntry.cs
- SspiNegotiationTokenProviderState.cs
- DataGridViewCellFormattingEventArgs.cs
- TraceShell.cs
- SqlConnectionString.cs
- FontStretch.cs
- ValidatingCollection.cs
- WizardStepBase.cs
- HttpClientCertificate.cs
- XPathAxisIterator.cs
- KnownAssembliesSet.cs
- MetadataPropertyAttribute.cs
- UnsafeNativeMethodsTablet.cs
- ByeMessage11.cs
- MethodExpr.cs
- KnownTypeDataContractResolver.cs
- StrokeNodeOperations.cs
- SchemaObjectWriter.cs
- BuildProvider.cs
- FirewallWrapper.cs
- ToolStripItemEventArgs.cs
- ObjectStateEntryDbDataRecord.cs
- DecimalAnimationBase.cs
- RowTypeElement.cs
- BasicBrowserDialog.designer.cs
- SchemaLookupTable.cs
- ZipIOExtraFieldPaddingElement.cs
- TextDecorations.cs
- WebPart.cs
- FormViewDeletedEventArgs.cs
- EnumValidator.cs
- ProtocolInformationWriter.cs
- CodeDelegateCreateExpression.cs
- RangeBaseAutomationPeer.cs
- VideoDrawing.cs
- SamlAuthorizationDecisionClaimResource.cs
- InvalidAsynchronousStateException.cs
- SchemaRegistration.cs
- DBCommandBuilder.cs
- ListBindingHelper.cs
- Line.cs
- DataGridViewCellCollection.cs
- AdornedElementPlaceholder.cs
- KeyBinding.cs
- Error.cs
- XmlSchemaExporter.cs
- StackSpiller.Bindings.cs
- RowUpdatedEventArgs.cs
- PatternMatcher.cs
- SqlIdentifier.cs
- BinaryFormatterWriter.cs
- BrowserCapabilitiesCodeGenerator.cs
- UndoEngine.cs
- SizeKeyFrameCollection.cs
- Path.cs
- IPGlobalProperties.cs
- TextChangedEventArgs.cs
- StrokeRenderer.cs
- OdbcUtils.cs
- Pipe.cs
- ProcessMonitor.cs
- XmlnsCache.cs
- WebPartVerb.cs
- PeerToPeerException.cs
- ModuleBuilder.cs
- MD5CryptoServiceProvider.cs
- DnsEndpointIdentity.cs
- KnownBoxes.cs
- Section.cs
- OleDbFactory.cs
- SortDescription.cs
- ActivityTypeResolver.xaml.cs
- TransactionValidationBehavior.cs
- RegexCompiler.cs
- GroupItem.cs
- WebRequestModulesSection.cs
- SiteMapDataSource.cs
- Collection.cs
- DynamicActionMessageFilter.cs
- XmlHierarchicalDataSourceView.cs
- X509Extension.cs
- HijriCalendar.cs
- SiteMapNodeItem.cs
- PathGeometry.cs
- PartialList.cs
- GeneralTransformGroup.cs
- NotifyCollectionChangedEventArgs.cs
- StrokeNodeOperations.cs
- HtmlTernaryTree.cs
- CodePropertyReferenceExpression.cs
- CqlGenerator.cs
- MediaContext.cs
- QuadraticEase.cs
- AudioSignalProblemOccurredEventArgs.cs