Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AnimatedTypeHelpers.cs
- XPathSelectionIterator.cs
- IdentitySection.cs
- NativeMethods.cs
- Control.cs
- PointCollectionConverter.cs
- AttributeQuery.cs
- CrossAppDomainChannel.cs
- DataGridColumnHeader.cs
- UnitySerializationHolder.cs
- ScrollViewer.cs
- PreloadedPackages.cs
- ObjectDataSourceSelectingEventArgs.cs
- InkCanvasSelection.cs
- DesignerAttribute.cs
- PerspectiveCamera.cs
- XmlTextReaderImplHelpers.cs
- DelegatingTypeDescriptionProvider.cs
- XmlSchemaObjectTable.cs
- XamlSerializerUtil.cs
- RotateTransform.cs
- Latin1Encoding.cs
- UserControlParser.cs
- Internal.cs
- AnnotationAuthorChangedEventArgs.cs
- WebPartEditorApplyVerb.cs
- PeerDuplexChannel.cs
- UTF32Encoding.cs
- SystemMulticastIPAddressInformation.cs
- KeyTime.cs
- Stylesheet.cs
- IPGlobalProperties.cs
- ProfileModule.cs
- ClockGroup.cs
- Menu.cs
- DbConnectionStringCommon.cs
- SRDisplayNameAttribute.cs
- XmlSortKey.cs
- sitestring.cs
- PrintEvent.cs
- basevalidator.cs
- ActivityDesigner.cs
- SortDescriptionCollection.cs
- SpellCheck.cs
- RectangleConverter.cs
- TemplateControlCodeDomTreeGenerator.cs
- shaperfactory.cs
- ValueTypePropertyReference.cs
- TreeNodeStyleCollection.cs
- LoginView.cs
- LoadedOrUnloadedOperation.cs
- FrameworkTemplate.cs
- returneventsaver.cs
- ProviderConnectionPointCollection.cs
- SqlResolver.cs
- IdentitySection.cs
- ResetableIterator.cs
- PropertyTab.cs
- RequestContext.cs
- FixedSOMTableRow.cs
- XmlSignatureProperties.cs
- DataGridPagerStyle.cs
- CommonDialog.cs
- ByteRangeDownloader.cs
- XmlEncApr2001.cs
- Baml2006SchemaContext.cs
- XPathParser.cs
- ByteRangeDownloader.cs
- SystemUnicastIPAddressInformation.cs
- ACL.cs
- ICspAsymmetricAlgorithm.cs
- DataGridCommandEventArgs.cs
- InfoCardRequestException.cs
- BitmapSourceSafeMILHandle.cs
- ClientUtils.cs
- BuildProvider.cs
- SqlBuffer.cs
- EventlogProvider.cs
- TypeTypeConverter.cs
- DataMisalignedException.cs
- MediaTimeline.cs
- XmlAtomicValue.cs
- SecurityState.cs
- HostedHttpTransportManager.cs
- ImageButton.cs
- SHA384Managed.cs
- ExpandCollapsePattern.cs
- CqlErrorHelper.cs
- ComplexTypeEmitter.cs
- DeclaredTypeValidator.cs
- DbUpdateCommandTree.cs
- IisTraceWebEventProvider.cs
- COM2ExtendedUITypeEditor.cs
- PathGradientBrush.cs
- BitmapInitialize.cs
- DecodeHelper.cs
- NullableLongMinMaxAggregationOperator.cs
- ReadOnlyDataSource.cs
- NoClickablePointException.cs
- DbDeleteCommandTree.cs