Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- BaseDataBoundControl.cs
- GeneralTransform3D.cs
- ClaimSet.cs
- Span.cs
- ExpressionConverter.cs
- XmlWriterSettings.cs
- TextLine.cs
- NativeMethods.cs
- StylusPointProperties.cs
- DrawingContextDrawingContextWalker.cs
- HtmlElementEventArgs.cs
- ReadOnlyPropertyMetadata.cs
- ToolStripButton.cs
- MenuBindingsEditor.cs
- WebPartVerbCollection.cs
- BoundingRectTracker.cs
- DesignerValidationSummaryAdapter.cs
- XmlnsPrefixAttribute.cs
- SecurityAlgorithmSuite.cs
- TableItemPattern.cs
- TypeSystemHelpers.cs
- TextRunCache.cs
- FixUp.cs
- MenuCommandsChangedEventArgs.cs
- DescendantBaseQuery.cs
- NativeObjectSecurity.cs
- ModuleConfigurationInfo.cs
- DivideByZeroException.cs
- FieldCollectionEditor.cs
- PointCollection.cs
- StandardMenuStripVerb.cs
- SapiRecoContext.cs
- TypeBuilderInstantiation.cs
- DateTimeSerializationSection.cs
- ThemeDirectoryCompiler.cs
- TTSEvent.cs
- TriState.cs
- WebServiceHandler.cs
- XmlDeclaration.cs
- ContextStaticAttribute.cs
- Brush.cs
- ISAPIRuntime.cs
- XmlEntity.cs
- ObjectPropertyMapping.cs
- DataGridSortCommandEventArgs.cs
- Application.cs
- Region.cs
- VisualProxy.cs
- AutomationPatternInfo.cs
- XmlHelper.cs
- XmlText.cs
- DrawingBrush.cs
- SafeRegistryHandle.cs
- PrivacyNoticeElement.cs
- Span.cs
- ProjectionPathSegment.cs
- PeerCredential.cs
- SrgsSemanticInterpretationTag.cs
- XPathMessageFilter.cs
- RouteParameter.cs
- PhotoPrintingIntent.cs
- HostProtectionException.cs
- ToolTip.cs
- AssemblyHash.cs
- ListViewEditEventArgs.cs
- SequentialUshortCollection.cs
- PtsCache.cs
- ListenerElementsCollection.cs
- ByteStreamGeometryContext.cs
- LayoutEditorPart.cs
- DocumentScope.cs
- PenThread.cs
- MetabaseServerConfig.cs
- iisPickupDirectory.cs
- ProtocolException.cs
- Int32KeyFrameCollection.cs
- AutomationElementCollection.cs
- KeyboardNavigation.cs
- ConfigurationValues.cs
- FixedSOMSemanticBox.cs
- MenuItemStyle.cs
- LoginName.cs
- DataGridViewUtilities.cs
- Point3DCollectionValueSerializer.cs
- ShutDownListener.cs
- PrintControllerWithStatusDialog.cs
- RtType.cs
- FrameworkContentElementAutomationPeer.cs
- FixedBufferAttribute.cs
- EtwTrace.cs
- TableLayoutSettingsTypeConverter.cs
- Bitmap.cs
- EdmMember.cs
- ISAPIRuntime.cs
- HttpCapabilitiesEvaluator.cs
- QueryCreatedEventArgs.cs
- Errors.cs
- DrawToolTipEventArgs.cs
- AccessibleObject.cs
- GridViewCancelEditEventArgs.cs