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
- RequestCacheManager.cs
- ApplicationFileParser.cs
- RouteCollection.cs
- EnumCodeDomSerializer.cs
- BookmarkUndoUnit.cs
- _AcceptOverlappedAsyncResult.cs
- RoleManagerEventArgs.cs
- RepeaterCommandEventArgs.cs
- BooleanStorage.cs
- ToolStripCustomTypeDescriptor.cs
- SharedPerformanceCounter.cs
- ColumnWidthChangingEvent.cs
- PointAnimationBase.cs
- ValidatedControlConverter.cs
- NullRuntimeConfig.cs
- FontConverter.cs
- AuthenticatedStream.cs
- GeneralTransformGroup.cs
- SlotInfo.cs
- HelpProvider.cs
- DataPagerFieldCommandEventArgs.cs
- ClockController.cs
- ToolStripPanelRow.cs
- WebPartMenu.cs
- SafeCryptContextHandle.cs
- MembershipSection.cs
- GuidelineCollection.cs
- QueryableFilterRepeater.cs
- GregorianCalendarHelper.cs
- TextDecorationCollection.cs
- TextEffect.cs
- MeasureItemEvent.cs
- ListBoxItem.cs
- ObjectDataSource.cs
- MessageDecoder.cs
- ColumnMap.cs
- TemplateControlParser.cs
- GeneratedView.cs
- MaterialGroup.cs
- SqlDataSourceEnumerator.cs
- SqlCacheDependencyDatabaseCollection.cs
- ValuePatternIdentifiers.cs
- SystemBrushes.cs
- BidOverLoads.cs
- MsmqVerifier.cs
- DataSourceConverter.cs
- XmlILOptimizerVisitor.cs
- StrokeDescriptor.cs
- BlockUIContainer.cs
- IsolatedStorageFilePermission.cs
- AppDomainManager.cs
- ColumnMap.cs
- PersonalizationProviderHelper.cs
- Stream.cs
- TrackingAnnotationCollection.cs
- XmlQueryTypeFactory.cs
- ScriptDescriptor.cs
- ControlIdConverter.cs
- HandlerFactoryCache.cs
- ActivityExecutorDelegateInfo.cs
- InvalidCastException.cs
- MetabaseSettings.cs
- SymbolType.cs
- ListItemConverter.cs
- OleAutBinder.cs
- SQLMembershipProvider.cs
- DbParameterCollection.cs
- WebFaultException.cs
- ByValueEqualityComparer.cs
- SerTrace.cs
- XmlNavigatorStack.cs
- DesignBindingValueUIHandler.cs
- TabControlAutomationPeer.cs
- WebPartAuthorizationEventArgs.cs
- EnterpriseServicesHelper.cs
- BinarySerializer.cs
- DesignerDataColumn.cs
- SystemSounds.cs
- IgnoreFileBuildProvider.cs
- CharacterMetrics.cs
- EncryptedData.cs
- TransformPattern.cs
- TaskFileService.cs
- DrawingBrush.cs
- PasswordRecoveryAutoFormat.cs
- NegotiationTokenAuthenticatorStateCache.cs
- Token.cs
- DataGridViewTopRowAccessibleObject.cs
- CodeTypeMemberCollection.cs
- PerformanceCounterLib.cs
- HtmlInputCheckBox.cs
- FlowDocumentView.cs
- KeyboardNavigation.cs
- QueryAccessibilityHelpEvent.cs
- ByteStreamMessageEncoderFactory.cs
- URLMembershipCondition.cs
- NamespaceInfo.cs
- BinaryUtilClasses.cs
- PageParser.cs
- MimeMapping.cs