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
- ToolStripMenuItemDesigner.cs
- ViewKeyConstraint.cs
- Size.cs
- SiteOfOriginContainer.cs
- ArraySegment.cs
- Collection.cs
- XmlAtomicValue.cs
- RepeaterItemEventArgs.cs
- RegexWorker.cs
- ButtonRenderer.cs
- ArrangedElement.cs
- WeakKeyDictionary.cs
- ILGenerator.cs
- BinaryObjectInfo.cs
- TreeNode.cs
- AccessText.cs
- DelegateSerializationHolder.cs
- SqlXml.cs
- ResourceReader.cs
- StorageRoot.cs
- FloaterBaseParaClient.cs
- ListBoxItem.cs
- RequestTimeoutManager.cs
- OrderedDictionary.cs
- XmlTextReaderImplHelpers.cs
- DataGridViewRow.cs
- XmlDesignerDataSourceView.cs
- TemplateEditingVerb.cs
- ContextBase.cs
- NetTcpSecurityElement.cs
- BoundField.cs
- WebPartConnectVerb.cs
- CacheAxisQuery.cs
- Win32Exception.cs
- KnownBoxes.cs
- PermissionSetEnumerator.cs
- SlotInfo.cs
- RecognitionResult.cs
- BoolExpr.cs
- CodePageUtils.cs
- NativeMethods.cs
- StateDesigner.TransitionInfo.cs
- MenuAutomationPeer.cs
- XmlMembersMapping.cs
- EnumType.cs
- WinFormsComponentEditor.cs
- WindowVisualStateTracker.cs
- XamlInt32CollectionSerializer.cs
- Transform.cs
- XamlBrushSerializer.cs
- WebPartsSection.cs
- TextElementCollection.cs
- GridViewEditEventArgs.cs
- Renderer.cs
- EncryptedKey.cs
- ActivitySurrogateSelector.cs
- HtmlElementCollection.cs
- SqlCommandBuilder.cs
- WrappedIUnknown.cs
- DataTableTypeConverter.cs
- SqlBulkCopyColumnMappingCollection.cs
- Stroke.cs
- LogReservationCollection.cs
- TextBoxAutoCompleteSourceConverter.cs
- EpmSyndicationContentSerializer.cs
- ComNativeDescriptor.cs
- KeyEventArgs.cs
- FontWeightConverter.cs
- IListConverters.cs
- TextEffectCollection.cs
- Inline.cs
- RootBrowserWindow.cs
- AsyncOperationContext.cs
- RelationshipManager.cs
- TypeExtensions.cs
- DbgCompiler.cs
- Int64Converter.cs
- PropertyMapper.cs
- CaseStatement.cs
- XmlEntityReference.cs
- SpeechRecognitionEngine.cs
- SourceFileBuildProvider.cs
- XmlSchemaException.cs
- OleDbConnectionFactory.cs
- RepeaterItemEventArgs.cs
- _NestedSingleAsyncResult.cs
- SamlDoNotCacheCondition.cs
- adornercollection.cs
- ObjectDataSource.cs
- WindowsFormsSynchronizationContext.cs
- Soap.cs
- DataServiceContext.cs
- ContentHostHelper.cs
- DragCompletedEventArgs.cs
- PropertyValueUIItem.cs
- Thread.cs
- InstanceKeyCollisionException.cs
- DownloadProgressEventArgs.cs
- SerializationUtility.cs
- WebPartActionVerb.cs