Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlElementEventArgs.cs
- ImageBrush.cs
- ResourceDefaultValueAttribute.cs
- PolicyException.cs
- panel.cs
- AxWrapperGen.cs
- ProfileEventArgs.cs
- WebCategoryAttribute.cs
- XsltCompileContext.cs
- DisableDpiAwarenessAttribute.cs
- WithStatement.cs
- UriScheme.cs
- CLSCompliantAttribute.cs
- ClientConfigurationHost.cs
- DLinqAssociationProvider.cs
- OpCellTreeNode.cs
- TimeSpanSecondsConverter.cs
- ListParaClient.cs
- BitStream.cs
- ProxyWebPart.cs
- PreservationFileWriter.cs
- DynamicDocumentPaginator.cs
- DeploymentSection.cs
- Context.cs
- SecurityProtocolFactory.cs
- SafeHandles.cs
- Pen.cs
- EpmContentDeSerializer.cs
- DataGridViewRowsRemovedEventArgs.cs
- AnchoredBlock.cs
- EnumerationRangeValidationUtil.cs
- DataGridViewCheckBoxCell.cs
- ControlCollection.cs
- TypedRowGenerator.cs
- FragmentQueryProcessor.cs
- XsdDuration.cs
- GeneralTransform3DGroup.cs
- HuffmanTree.cs
- XmlComplianceUtil.cs
- AutomationEvent.cs
- MenuItemBinding.cs
- StateWorkerRequest.cs
- TypeInitializationException.cs
- TypeNameConverter.cs
- ControllableStoryboardAction.cs
- SettingsPropertyValue.cs
- WindowsImpersonationContext.cs
- DebuggerAttributes.cs
- OleDbConnectionFactory.cs
- SBCSCodePageEncoding.cs
- SignatureToken.cs
- BooleanSwitch.cs
- DiagnosticTrace.cs
- BrowserTree.cs
- WindowsIdentity.cs
- SizeAnimationBase.cs
- ZipPackage.cs
- PingReply.cs
- InkCanvasFeedbackAdorner.cs
- CellConstantDomain.cs
- ManagementBaseObject.cs
- DSASignatureDeformatter.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- CodeAccessSecurityEngine.cs
- DataChangedEventManager.cs
- PathSegment.cs
- ConnectionStringEditor.cs
- XmlCodeExporter.cs
- WebPartTransformer.cs
- AttachedPropertyMethodSelector.cs
- DataMisalignedException.cs
- OutputCacheSection.cs
- LeafCellTreeNode.cs
- NTAccount.cs
- PasswordTextNavigator.cs
- SapiRecoInterop.cs
- ComponentRenameEvent.cs
- TextLineResult.cs
- DbModificationClause.cs
- RichTextBoxConstants.cs
- XmlName.cs
- PictureBoxDesigner.cs
- TextMessageEncodingBindingElement.cs
- EncryptedKeyHashIdentifierClause.cs
- FormsAuthenticationCredentials.cs
- RowToParametersTransformer.cs
- ObjectCloneHelper.cs
- FontFaceLayoutInfo.cs
- PersonalizationStateQuery.cs
- ToolStripDropDownItem.cs
- SqlRewriteScalarSubqueries.cs
- ResourceReader.cs
- RegexGroup.cs
- EnumerableRowCollectionExtensions.cs
- CollectionViewSource.cs
- EventProviderWriter.cs
- DataGridViewCellStyleEditor.cs
- InfoCardRSACryptoProvider.cs
- RequestCacheEntry.cs
- StrokeCollection.cs