Code:
/ FX-1434 / FX-1434 / 1.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
- TreeNode.cs
- FormatConvertedBitmap.cs
- GiveFeedbackEventArgs.cs
- WebPartTracker.cs
- SqlNotificationEventArgs.cs
- CodeExpressionCollection.cs
- HttpCacheParams.cs
- SHA512Managed.cs
- VerificationException.cs
- ToolStripPanelRow.cs
- CustomAttributeFormatException.cs
- LogLogRecordEnumerator.cs
- OrderByQueryOptionExpression.cs
- QuaternionAnimation.cs
- PixelFormatConverter.cs
- DataServiceCollectionOfT.cs
- CollaborationHelperFunctions.cs
- SqlBulkCopyColumnMappingCollection.cs
- ParsedAttributeCollection.cs
- OperatingSystem.cs
- UnsafeNativeMethods.cs
- VisualStyleElement.cs
- EntityParameterCollection.cs
- ComplexLine.cs
- StatusBarItem.cs
- ContextTokenTypeConverter.cs
- WindowAutomationPeer.cs
- GridViewEditEventArgs.cs
- Dynamic.cs
- validation.cs
- Binding.cs
- EpmContentDeSerializerBase.cs
- MimePart.cs
- CodeAccessPermission.cs
- NotificationContext.cs
- MatrixStack.cs
- FrameworkElementFactory.cs
- TransformerConfigurationWizardBase.cs
- FrameworkRichTextComposition.cs
- SocketInformation.cs
- ParentUndoUnit.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ThreadLocal.cs
- RSAPKCS1SignatureDeformatter.cs
- OracleDateTime.cs
- Pair.cs
- AndMessageFilterTable.cs
- DataGridCellsPresenter.cs
- EntityType.cs
- SqlXmlStorage.cs
- DocumentApplicationJournalEntry.cs
- ContextMarshalException.cs
- DataGridViewLayoutData.cs
- PropertyChangedEventArgs.cs
- XamlStream.cs
- StringUtil.cs
- SafeRegistryKey.cs
- ItemCheckEvent.cs
- FieldAccessException.cs
- KnownTypeHelper.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- MetadataArtifactLoader.cs
- CodeGeneratorAttribute.cs
- TextEffectCollection.cs
- FlowDocumentReaderAutomationPeer.cs
- AdRotatorDesigner.cs
- ComponentEditorPage.cs
- InstanceOwner.cs
- DtrList.cs
- JsonXmlDataContract.cs
- Preprocessor.cs
- PathFigure.cs
- PrimitiveCodeDomSerializer.cs
- SelectorItemAutomationPeer.cs
- CachingHintValidation.cs
- SectionVisual.cs
- PopupRoot.cs
- ActiveXSite.cs
- OdbcHandle.cs
- Compensate.cs
- OleCmdHelper.cs
- BindingValueChangedEventArgs.cs
- ComponentResourceKey.cs
- SpecialFolderEnumConverter.cs
- AmbientValueAttribute.cs
- GenericEnumerator.cs
- FastEncoderWindow.cs
- SerialReceived.cs
- BoundPropertyEntry.cs
- ADMembershipUser.cs
- Memoizer.cs
- TokenBasedSetEnumerator.cs
- UnaryQueryOperator.cs
- webclient.cs
- FileLoadException.cs
- ValueUnavailableException.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- NetworkInformationException.cs
- MatrixStack.cs
- TextElementAutomationPeer.cs