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
- HashHelper.cs
- ConfigurationManagerHelper.cs
- PathFigure.cs
- ContainerAction.cs
- MapPathBasedVirtualPathProvider.cs
- CodeIterationStatement.cs
- CommandTreeTypeHelper.cs
- ListParagraph.cs
- RequestQueryParser.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- TileModeValidation.cs
- SystemColors.cs
- NativeRecognizer.cs
- _OSSOCK.cs
- ExtenderHelpers.cs
- ApplicationServicesHostFactory.cs
- TextClipboardData.cs
- TypedRowHandler.cs
- ChangeProcessor.cs
- OutputCacheSettings.cs
- Border.cs
- AnimationLayer.cs
- SvcMapFileLoader.cs
- XmlQuerySequence.cs
- SerializationIncompleteException.cs
- ManipulationDevice.cs
- ToolStripGripRenderEventArgs.cs
- DropDownList.cs
- OleDbConnectionFactory.cs
- RectAnimation.cs
- BindingListCollectionView.cs
- SymmetricCryptoHandle.cs
- DbDataSourceEnumerator.cs
- JsonUriDataContract.cs
- AggregateNode.cs
- ListViewPagedDataSource.cs
- CellCreator.cs
- ExpandSegment.cs
- SelectionRange.cs
- autovalidator.cs
- SetStoryboardSpeedRatio.cs
- IdentityElement.cs
- CompressStream.cs
- KeyConverter.cs
- Misc.cs
- MoveSizeWinEventHandler.cs
- WmlTextBoxAdapter.cs
- FamilyCollection.cs
- IRCollection.cs
- AttachmentCollection.cs
- ToolStripRenderEventArgs.cs
- BindingCollectionElement.cs
- ComponentRenameEvent.cs
- XmlSchemaComplexContent.cs
- UnmanagedMarshal.cs
- ProviderUtil.cs
- AmbientLight.cs
- Point3DAnimationBase.cs
- BufferBuilder.cs
- CngKeyBlobFormat.cs
- StylusShape.cs
- RowType.cs
- MetadataCollection.cs
- QilPatternFactory.cs
- SafeNativeMethods.cs
- TreeBuilderBamlTranslator.cs
- TableFieldsEditor.cs
- GlyphElement.cs
- TypeConverterAttribute.cs
- PrintPreviewDialog.cs
- HtmlSelect.cs
- ACE.cs
- SqlColumnizer.cs
- VerificationAttribute.cs
- ContextProperty.cs
- ManipulationInertiaStartingEventArgs.cs
- ReflectEventDescriptor.cs
- CDSCollectionETWBCLProvider.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- MapPathBasedVirtualPathProvider.cs
- PermissionSet.cs
- DefaultSection.cs
- XmlHierarchicalEnumerable.cs
- CryptoStream.cs
- ImageDrawing.cs
- ContainerVisual.cs
- WindowsRebar.cs
- SqlConnectionFactory.cs
- RealProxy.cs
- UserPreferenceChangingEventArgs.cs
- ControlSerializer.cs
- EpmSyndicationContentSerializer.cs
- SapiAttributeParser.cs
- ProfileManager.cs
- RoutedEvent.cs
- Base64Stream.cs
- objectquery_tresulttype.cs
- PointLight.cs
- SchemaNamespaceManager.cs
- _Connection.cs