Code:
/ FX-1434 / FX-1434 / 1.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
- TableSectionStyle.cs
- DecoderBestFitFallback.cs
- ListViewDeletedEventArgs.cs
- GeneralTransform3DTo2D.cs
- cache.cs
- ReadWriteObjectLock.cs
- FrameworkContextData.cs
- UiaCoreProviderApi.cs
- IncrementalReadDecoders.cs
- _TLSstream.cs
- EndCreateSecurityTokenRequest.cs
- ArgIterator.cs
- ClientSettingsStore.cs
- WorkflowServiceBehavior.cs
- GraphicsState.cs
- SqlTransaction.cs
- DeferredReference.cs
- TextTabProperties.cs
- TableColumnCollectionInternal.cs
- WinCategoryAttribute.cs
- ComponentResourceManager.cs
- PropertyInformation.cs
- TypeReference.cs
- XsltSettings.cs
- TypeToken.cs
- MulticastIPAddressInformationCollection.cs
- OracleTransaction.cs
- PrinterSettings.cs
- ArrayList.cs
- EpmCustomContentWriterNodeData.cs
- HwndAppCommandInputProvider.cs
- FileDialog_Vista_Interop.cs
- PartialTrustVisibleAssembliesSection.cs
- EmptyImpersonationContext.cs
- UnsafeCollabNativeMethods.cs
- CodeTypeParameter.cs
- TypeBuilderInstantiation.cs
- CustomErrorCollection.cs
- MaskedTextBoxDesignerActionList.cs
- ChangeInterceptorAttribute.cs
- NumberSubstitution.cs
- OutputScope.cs
- BaseDataList.cs
- DrawListViewColumnHeaderEventArgs.cs
- Hex.cs
- MediaCommands.cs
- Win32MouseDevice.cs
- FlagsAttribute.cs
- HttpCapabilitiesSectionHandler.cs
- MemberHolder.cs
- RadioButtonRenderer.cs
- InitialServerConnectionReader.cs
- DataGridViewImageColumn.cs
- BulletedListEventArgs.cs
- Menu.cs
- JsonReaderWriterFactory.cs
- StylusPointProperty.cs
- Activation.cs
- PerfCounters.cs
- BaseUriHelper.cs
- AttachmentCollection.cs
- EventSourceCreationData.cs
- DataGridViewCellMouseEventArgs.cs
- Profiler.cs
- Condition.cs
- safelinkcollection.cs
- Geometry.cs
- RemoteWebConfigurationHost.cs
- InternalBase.cs
- ColorPalette.cs
- SqlRowUpdatedEvent.cs
- DataBoundControl.cs
- Random.cs
- ListChunk.cs
- TextFormatter.cs
- ViewStateModeByIdAttribute.cs
- ExtendedPropertyDescriptor.cs
- DocumentPageTextView.cs
- DataSpaceManager.cs
- TextEndOfLine.cs
- TextTreePropertyUndoUnit.cs
- WsiProfilesElement.cs
- GreenMethods.cs
- DataGridViewCellCancelEventArgs.cs
- _DisconnectOverlappedAsyncResult.cs
- MetadataFile.cs
- HttpStreamFormatter.cs
- XLinq.cs
- IntersectQueryOperator.cs
- TimeSpanValidator.cs
- TypeProvider.cs
- ObjectKeyFrameCollection.cs
- AnnouncementSendsAsyncResult.cs
- QilInvokeLateBound.cs
- Section.cs
- InputBinder.cs
- XamlPathDataSerializer.cs
- SystemIcons.cs
- DocComment.cs
- SqlLiftIndependentRowExpressions.cs