Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / ArithmeticException.cs / 1 / ArithmeticException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: ArithmeticException ** ** ** Purpose: Exception class for bad arithmetic conditions! ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; // The ArithmeticException is thrown when overflow or underflow // occurs. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class ArithmeticException : SystemException { // Creates a new ArithmeticException with its message string set to // the empty string, its HRESULT set to COR_E_ARITHMETIC, // and its ExceptionInfo reference set to null. public ArithmeticException() : base(Environment.GetResourceString("Arg_ArithmeticException")) { SetErrorCode(__HResults.COR_E_ARITHMETIC); } // Creates a new ArithmeticException with its message string set to // message, its HRESULT set to COR_E_ARITHMETIC, // and its ExceptionInfo reference set to null. // public ArithmeticException(String message) : base(message) { SetErrorCode(__HResults.COR_E_ARITHMETIC); } public ArithmeticException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_ARITHMETIC); } protected ArithmeticException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DownloadProgressEventArgs.cs
- CompilerResults.cs
- CollectionDataContractAttribute.cs
- StrongNamePublicKeyBlob.cs
- MemberNameValidator.cs
- MetadataArtifactLoaderResource.cs
- connectionpool.cs
- HandleCollector.cs
- RegisteredHiddenField.cs
- ForwardPositionQuery.cs
- WinFormsComponentEditor.cs
- ContextMenuStrip.cs
- TPLETWProvider.cs
- NavigationService.cs
- TextRunProperties.cs
- ResourceDisplayNameAttribute.cs
- TrustManagerPromptUI.cs
- CodeStatementCollection.cs
- ImageAttributes.cs
- SendDesigner.xaml.cs
- ExpandCollapsePattern.cs
- CodeDomConfigurationHandler.cs
- CompilerLocalReference.cs
- DataGridViewCellStyleConverter.cs
- DataGridBoolColumn.cs
- RequestCacheValidator.cs
- OutputCacheSettings.cs
- SafeFileHandle.cs
- EmptyReadOnlyDictionaryInternal.cs
- PropertyValueUIItem.cs
- PlaceHolder.cs
- DataSourceExpressionCollection.cs
- OutOfProcStateClientManager.cs
- DelimitedListTraceListener.cs
- EmptyElement.cs
- SiteMapProvider.cs
- DeviceContexts.cs
- ExternalException.cs
- GrammarBuilderRuleRef.cs
- ExeConfigurationFileMap.cs
- CompleteWizardStep.cs
- XmlILIndex.cs
- FilteredAttributeCollection.cs
- Triplet.cs
- HashStream.cs
- DomNameTable.cs
- RoutedEventConverter.cs
- CommandConverter.cs
- PopOutPanel.cs
- SqlMethodTransformer.cs
- DescendentsWalkerBase.cs
- ScriptHandlerFactory.cs
- webbrowsersite.cs
- QilDataSource.cs
- PeerApplicationLaunchInfo.cs
- TextServicesHost.cs
- XmlNotation.cs
- WorkflowInspectionServices.cs
- CharStorage.cs
- CheckedListBox.cs
- ExpressionEditorAttribute.cs
- WmpBitmapEncoder.cs
- TabControlCancelEvent.cs
- WebPartActionVerb.cs
- CounterSample.cs
- HandlerFactoryWrapper.cs
- HttpHandler.cs
- _WinHttpWebProxyDataBuilder.cs
- ButtonFlatAdapter.cs
- FontWeights.cs
- GeneralTransform3DCollection.cs
- HashCodeCombiner.cs
- RadioButton.cs
- UrlMappingCollection.cs
- SecurityElement.cs
- Parser.cs
- EnumerableWrapperWeakToStrong.cs
- HttpRawResponse.cs
- Switch.cs
- ParsedAttributeCollection.cs
- AsyncDataRequest.cs
- Quad.cs
- FlowDecisionLabelFeature.cs
- Tile.cs
- Codec.cs
- TemplateManager.cs
- DirectoryRootQuery.cs
- TailPinnedEventArgs.cs
- StatusBarPanel.cs
- RowType.cs
- LogicalExpressionTypeConverter.cs
- DateTimeValueSerializer.cs
- TemplateBindingExtensionConverter.cs
- HtmlHead.cs
- LayoutEngine.cs
- InternalDispatchObject.cs
- URIFormatException.cs
- MarshalDirectiveException.cs
- DataSpaceManager.cs
- ChannelServices.cs