Code:
/ FX-1434 / FX-1434 / 1.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
- DataViewListener.cs
- HttpHeaderCollection.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- FilterElement.cs
- MultipartIdentifier.cs
- SqlConnectionFactory.cs
- dtdvalidator.cs
- XMLDiffLoader.cs
- DebuggerService.cs
- ControlParameter.cs
- DLinqTableProvider.cs
- HyperLinkStyle.cs
- MemberInitExpression.cs
- HostingEnvironmentException.cs
- MaskedTextBox.cs
- CheckPair.cs
- ResourceExpressionBuilder.cs
- WindowsEditBoxRange.cs
- TextEvent.cs
- ListViewGroup.cs
- RegistryKey.cs
- Scene3D.cs
- WorkflowItemPresenter.cs
- DbBuffer.cs
- Pens.cs
- AttributeCollection.cs
- ToolStripContentPanel.cs
- PropertyRef.cs
- AnnouncementSendsAsyncResult.cs
- ExcludePathInfo.cs
- AffineTransform3D.cs
- QueryResponse.cs
- ToolStripDropDownMenu.cs
- RowUpdatedEventArgs.cs
- PersonalizationStateInfo.cs
- OpenTypeCommon.cs
- SettingsProperty.cs
- CodeArrayCreateExpression.cs
- versioninfo.cs
- EdmComplexPropertyAttribute.cs
- ButtonAutomationPeer.cs
- HttpListener.cs
- JavaScriptString.cs
- ValidationError.cs
- TypeHelper.cs
- TextRange.cs
- CodeCatchClause.cs
- BitmapEffectGroup.cs
- NativeObjectSecurity.cs
- IntAverageAggregationOperator.cs
- WebServiceData.cs
- VirtualPath.cs
- TemplateBindingExtensionConverter.cs
- PersonalizationStateInfoCollection.cs
- SchemaSetCompiler.cs
- NavigatingCancelEventArgs.cs
- FileDetails.cs
- _ListenerAsyncResult.cs
- ButtonChrome.cs
- CacheEntry.cs
- AdornedElementPlaceholder.cs
- TextRangeBase.cs
- ThemeDictionaryExtension.cs
- AnnotationHelper.cs
- FileVersionInfo.cs
- XmlDownloadManager.cs
- GlobalAclOperationRequirement.cs
- XamlRtfConverter.cs
- ImmutableClientRuntime.cs
- LicFileLicenseProvider.cs
- StackOverflowException.cs
- RemoteWebConfigurationHost.cs
- ToolboxItemAttribute.cs
- translator.cs
- Attributes.cs
- Floater.cs
- MailWriter.cs
- ManipulationCompletedEventArgs.cs
- BrowserCapabilitiesCodeGenerator.cs
- PropertyMetadata.cs
- ConstantSlot.cs
- GenericIdentity.cs
- ThrowHelper.cs
- XmlWhitespace.cs
- BlurBitmapEffect.cs
- Light.cs
- CharAnimationBase.cs
- DocumentXPathNavigator.cs
- FacetChecker.cs
- TextSelectionHelper.cs
- CompModSwitches.cs
- AutomationPropertyInfo.cs
- SAPICategories.cs
- RegexCapture.cs
- PerformanceCountersBase.cs
- StoreItemCollection.Loader.cs
- StorageMappingItemCollection.cs
- ToolStripComboBox.cs
- ExceptionUtil.cs
- SchemaHelper.cs