Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataGridViewColumn.cs
- WindowShowOrOpenTracker.cs
- DbFunctionCommandTree.cs
- StatusBarItem.cs
- RIPEMD160Managed.cs
- ContainerCodeDomSerializer.cs
- ToolStripStatusLabel.cs
- ToolboxComponentsCreatedEventArgs.cs
- NavigationWindow.cs
- RegistrySecurity.cs
- TraceProvider.cs
- SplineKeyFrames.cs
- TypeDescriptorContext.cs
- SkewTransform.cs
- TreeViewItem.cs
- RelOps.cs
- DataKey.cs
- ServiceReference.cs
- Point.cs
- OdbcReferenceCollection.cs
- TrackBarRenderer.cs
- DrawingState.cs
- RowCache.cs
- SplashScreenNativeMethods.cs
- DelimitedListTraceListener.cs
- ToolStripDropDownClosedEventArgs.cs
- EdmItemError.cs
- RuleProcessor.cs
- XmlDataSourceView.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- WindowPattern.cs
- GridViewHeaderRowPresenter.cs
- DoubleAnimationUsingKeyFrames.cs
- SchemaElementDecl.cs
- BigInt.cs
- EventToken.cs
- TypeNameConverter.cs
- ObjectStateFormatter.cs
- CustomBindingElementCollection.cs
- StructuredCompositeActivityDesigner.cs
- XmlException.cs
- RecommendedAsConfigurableAttribute.cs
- MessageBox.cs
- DynamicPropertyReader.cs
- WebConfigurationHostFileChange.cs
- TextTrailingWordEllipsis.cs
- DataShape.cs
- ProxyHwnd.cs
- TemplateContentLoader.cs
- RegisteredDisposeScript.cs
- sqlpipe.cs
- ComponentCache.cs
- TrackBarRenderer.cs
- SqlUDTStorage.cs
- BitmapEffectDrawing.cs
- PrintEvent.cs
- basemetadatamappingvisitor.cs
- HierarchicalDataBoundControlAdapter.cs
- HwndHostAutomationPeer.cs
- ImageListImage.cs
- WindowsListView.cs
- ParserHooks.cs
- EntryWrittenEventArgs.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- UmAlQuraCalendar.cs
- DataRowComparer.cs
- PolicyException.cs
- SchemaImporterExtension.cs
- FastPropertyAccessor.cs
- ToolStripHighContrastRenderer.cs
- UnsafePeerToPeerMethods.cs
- SqlInfoMessageEvent.cs
- GrammarBuilder.cs
- FormatConvertedBitmap.cs
- SettingsPropertyWrongTypeException.cs
- SettingsPropertyIsReadOnlyException.cs
- CodeAttributeArgument.cs
- StringResourceManager.cs
- MultiByteCodec.cs
- GeneralTransform3DTo2DTo3D.cs
- SqlCommand.cs
- RelationshipWrapper.cs
- XmlAttribute.cs
- Registry.cs
- XmlReturnReader.cs
- xamlnodes.cs
- CodeSnippetTypeMember.cs
- DataGridViewTextBoxEditingControl.cs
- DrawingImage.cs
- PointCollection.cs
- CroppedBitmap.cs
- BoundColumn.cs
- SecurityCriticalDataForSet.cs
- Label.cs
- DragStartedEventArgs.cs
- TypeSystem.cs
- HttpModuleActionCollection.cs
- BinaryQueryOperator.cs
- DrawTreeNodeEventArgs.cs
- ThaiBuddhistCalendar.cs