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
- ReferencedCollectionType.cs
- DialogWindow.cs
- UrlAuthorizationModule.cs
- RectAnimationClockResource.cs
- Axis.cs
- ServiceInfo.cs
- TypefaceMap.cs
- XsltLoader.cs
- CqlGenerator.cs
- Message.cs
- SharedStatics.cs
- ZoneButton.cs
- WeakReadOnlyCollection.cs
- EmptyControlCollection.cs
- SByte.cs
- WorkflowRuntimeServicesBehavior.cs
- MonthChangedEventArgs.cs
- CodeDirectoryCompiler.cs
- PieceDirectory.cs
- SessionStateModule.cs
- LinqExpressionNormalizer.cs
- Internal.cs
- InertiaTranslationBehavior.cs
- Pen.cs
- initElementDictionary.cs
- PersonalizationProviderHelper.cs
- XmlObjectSerializerReadContextComplexJson.cs
- ClientRuntimeConfig.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- XmlnsPrefixAttribute.cs
- loginstatus.cs
- cookieexception.cs
- PrintControllerWithStatusDialog.cs
- SqlMethods.cs
- XmlAnyElementAttribute.cs
- ToolboxItemLoader.cs
- WebServiceReceive.cs
- EntityContainerEntitySetDefiningQuery.cs
- ListQueryResults.cs
- PrintPreviewControl.cs
- CodePropertyReferenceExpression.cs
- HttpConfigurationSystem.cs
- ValueTypeFixupInfo.cs
- EdmPropertyAttribute.cs
- StackOverflowException.cs
- QilNode.cs
- CodeStatement.cs
- StylusTip.cs
- CurrentChangedEventManager.cs
- UriTemplateTrieNode.cs
- XpsPackagingException.cs
- RectangleHotSpot.cs
- GetWinFXPath.cs
- DataServiceQueryOfT.cs
- UITypeEditor.cs
- SchemaCollectionPreprocessor.cs
- Parser.cs
- EmptyEnumerable.cs
- ScrollChrome.cs
- ProxyGenerator.cs
- ButtonPopupAdapter.cs
- ChtmlCommandAdapter.cs
- NextPreviousPagerField.cs
- WebPartCloseVerb.cs
- StringExpressionSet.cs
- ScrollProperties.cs
- DateTimeSerializationSection.cs
- PlatformNotSupportedException.cs
- ParallelDesigner.cs
- DataGridViewCell.cs
- StatusBarPanelClickEvent.cs
- ConfigurationException.cs
- MeshGeometry3D.cs
- RelatedView.cs
- HwndProxyElementProvider.cs
- ActiveXContainer.cs
- InplaceBitmapMetadataWriter.cs
- WmlValidatorAdapter.cs
- FieldAccessException.cs
- InvalidCastException.cs
- QueryAccessibilityHelpEvent.cs
- StringWriter.cs
- _NestedMultipleAsyncResult.cs
- connectionpool.cs
- NegotiationTokenProvider.cs
- DoubleLinkListEnumerator.cs
- NGCPageContentCollectionSerializerAsync.cs
- LiteralControl.cs
- ToolboxControl.cs
- WeakRefEnumerator.cs
- PenContext.cs
- mda.cs
- CodeMemberMethod.cs
- Variant.cs
- WebPartEditorApplyVerb.cs
- WebBrowser.cs
- SpeechRecognitionEngine.cs
- JoinSymbol.cs
- BitStack.cs
- ParameterInfo.cs