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
- SizeLimitedCache.cs
- CanonicalizationDriver.cs
- ComponentResourceKeyConverter.cs
- ObjectParameter.cs
- ConnectionManagementSection.cs
- Int64KeyFrameCollection.cs
- XsltCompileContext.cs
- FormatConvertedBitmap.cs
- CheckPair.cs
- RotateTransform.cs
- LocalizedNameDescriptionPair.cs
- QueryReaderSettings.cs
- InputScope.cs
- FixedSOMContainer.cs
- ClientBuildManager.cs
- XmlMembersMapping.cs
- OleStrCAMarshaler.cs
- MaxSessionCountExceededException.cs
- BitHelper.cs
- FillBehavior.cs
- DataGridColumn.cs
- AlignmentXValidation.cs
- XmlAttributes.cs
- RangeContentEnumerator.cs
- NetNamedPipeSecurityMode.cs
- BaseResourcesBuildProvider.cs
- SoapIncludeAttribute.cs
- InvalidAsynchronousStateException.cs
- NavigationExpr.cs
- RecommendedAsConfigurableAttribute.cs
- DataGridViewRowPrePaintEventArgs.cs
- CurrencyWrapper.cs
- XPathNodeHelper.cs
- WebContext.cs
- HtmlUtf8RawTextWriter.cs
- ComponentSerializationService.cs
- SortKey.cs
- NetworkInformationPermission.cs
- ImageListUtils.cs
- TemplatePagerField.cs
- SqlBuilder.cs
- HostedHttpContext.cs
- DefaultPrintController.cs
- EmbeddedMailObjectsCollection.cs
- BuildResult.cs
- InputReport.cs
- Switch.cs
- StatusBarAutomationPeer.cs
- FamilyMapCollection.cs
- ConfigUtil.cs
- ReadOnlyTernaryTree.cs
- Scripts.cs
- CodeSubDirectoriesCollection.cs
- DataReaderContainer.cs
- ButtonField.cs
- EnvelopedPkcs7.cs
- Separator.cs
- SelectedDatesCollection.cs
- FloaterParagraph.cs
- ValidationEventArgs.cs
- ContentWrapperAttribute.cs
- HtmlTableRow.cs
- ApplicationId.cs
- CodeTypeParameterCollection.cs
- MediaContext.cs
- EventHandlerList.cs
- InfoCardConstants.cs
- RootBrowserWindow.cs
- PermissionAttributes.cs
- EventSourceCreationData.cs
- BinaryCommonClasses.cs
- SettingsPropertyValueCollection.cs
- MailBnfHelper.cs
- VirtualPathUtility.cs
- COM2Enum.cs
- MemberInitExpression.cs
- Typography.cs
- BridgeDataReader.cs
- HScrollProperties.cs
- NameTable.cs
- InteropAutomationProvider.cs
- MorphHelpers.cs
- HtmlTableRowCollection.cs
- Certificate.cs
- WaitHandleCannotBeOpenedException.cs
- PageClientProxyGenerator.cs
- WsdlExporter.cs
- IISUnsafeMethods.cs
- SimplePropertyEntry.cs
- SafeFindHandle.cs
- NamespaceEmitter.cs
- KnownAssembliesSet.cs
- XmlException.cs
- XPathDocument.cs
- HttpServerVarsCollection.cs
- ListSortDescription.cs
- Timeline.cs
- SharedPersonalizationStateInfo.cs
- FloaterParaClient.cs
- TreeNodeBinding.cs