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
- SecurityDescriptor.cs
- GridViewRowEventArgs.cs
- Token.cs
- SystemTcpStatistics.cs
- NumericExpr.cs
- EditorZoneDesigner.cs
- DataGridViewCellValueEventArgs.cs
- TreeViewImageIndexConverter.cs
- CultureTableRecord.cs
- DrawingContextDrawingContextWalker.cs
- DataGridViewToolTip.cs
- HtmlToClrEventProxy.cs
- WS2007HttpBinding.cs
- ByteKeyFrameCollection.cs
- DesignerActionUIService.cs
- SystemIPAddressInformation.cs
- ResourcePermissionBase.cs
- ClockController.cs
- ListBase.cs
- SharedStatics.cs
- LocationInfo.cs
- DataBinder.cs
- XmlNamedNodeMap.cs
- BitConverter.cs
- DataGridLinkButton.cs
- SelectionListComponentEditor.cs
- AssociationEndMember.cs
- ActionItem.cs
- DataServiceExpressionVisitor.cs
- BackStopAuthenticationModule.cs
- ImportCatalogPart.cs
- BuildResultCache.cs
- ProgressBarAutomationPeer.cs
- WebPartEditorOkVerb.cs
- Label.cs
- AnimationClock.cs
- SBCSCodePageEncoding.cs
- SafeBuffer.cs
- TerminateSequence.cs
- BamlTreeUpdater.cs
- StylusShape.cs
- ReadOnlyHierarchicalDataSource.cs
- ExpandableObjectConverter.cs
- Drawing.cs
- UnsafeNativeMethods.cs
- PersistenceTypeAttribute.cs
- XPathDocumentNavigator.cs
- TypeForwardedToAttribute.cs
- PrePostDescendentsWalker.cs
- DisposableCollectionWrapper.cs
- SHA384.cs
- TextComposition.cs
- ForceCopyBuildProvider.cs
- SmtpException.cs
- InvalidWMPVersionException.cs
- CursorConverter.cs
- UpdateManifestForBrowserApplication.cs
- DetailsViewDeletedEventArgs.cs
- CharUnicodeInfo.cs
- ConnectionProviderAttribute.cs
- TextEmbeddedObject.cs
- RemotingAttributes.cs
- X509Utils.cs
- FrameDimension.cs
- DefaultValueTypeConverter.cs
- ListViewCancelEventArgs.cs
- ResumeStoryboard.cs
- TypeDelegator.cs
- IListConverters.cs
- PropertyStore.cs
- TextCharacters.cs
- CharacterMetrics.cs
- ImageMap.cs
- DesignTimeVisibleAttribute.cs
- SiteMapDataSource.cs
- DurableInstanceManager.cs
- SevenBitStream.cs
- DynamicField.cs
- SafeBitVector32.cs
- TableLayoutStyleCollection.cs
- ExtenderProvidedPropertyAttribute.cs
- EntryWrittenEventArgs.cs
- XPathNodeHelper.cs
- CustomWebEventKey.cs
- SimpleFieldTemplateFactory.cs
- MatrixKeyFrameCollection.cs
- SystemInfo.cs
- SQLSingleStorage.cs
- ToolStripSeparatorRenderEventArgs.cs
- PropertyInfo.cs
- CodeConditionStatement.cs
- CodeAttributeArgumentCollection.cs
- ThreadAttributes.cs
- UnsafeNativeMethods.cs
- Wizard.cs
- URLString.cs
- CodePageEncoding.cs
- EventSetterHandlerConverter.cs
- ElementProxy.cs
- AddInControllerImpl.cs