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
- RedistVersionInfo.cs
- ValueTypeFixupInfo.cs
- ObjectAssociationEndMapping.cs
- HandlerBase.cs
- ParallelForEach.cs
- SettingsContext.cs
- InstanceKey.cs
- InputLanguage.cs
- Grant.cs
- Size.cs
- WebException.cs
- DynamicRendererThreadManager.cs
- AdapterDictionary.cs
- StreamingContext.cs
- ItemType.cs
- HMACSHA256.cs
- WebPartDescription.cs
- AttachedPropertiesService.cs
- DataGridParentRows.cs
- ValidateNames.cs
- RootBrowserWindow.cs
- ClientConfigurationSystem.cs
- _ContextAwareResult.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ProcessModule.cs
- Renderer.cs
- FunctionDetailsReader.cs
- StrongNameIdentityPermission.cs
- MenuItemBindingCollection.cs
- SevenBitStream.cs
- SocketInformation.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ObjectStateEntryDbDataRecord.cs
- XmlUtil.cs
- SoapEnumAttribute.cs
- streamingZipPartStream.cs
- TrackingServices.cs
- WebPart.cs
- SeparatorAutomationPeer.cs
- PolicyUnit.cs
- SignedPkcs7.cs
- TypeDescriptorContext.cs
- Utils.cs
- CodeSubDirectoriesCollection.cs
- RequiredFieldValidator.cs
- RepeaterItemCollection.cs
- KeyValuePairs.cs
- EntityKey.cs
- FileDialog.cs
- WindowsStatic.cs
- MdImport.cs
- PointUtil.cs
- TileBrush.cs
- ProfileSettingsCollection.cs
- HideDisabledControlAdapter.cs
- HttpConfigurationSystem.cs
- HyperLinkStyle.cs
- Literal.cs
- TreeBuilderXamlTranslator.cs
- MD5CryptoServiceProvider.cs
- X509PeerCertificateElement.cs
- CalendarDateChangedEventArgs.cs
- InertiaTranslationBehavior.cs
- ApplicationInterop.cs
- SafeFindHandle.cs
- AuthStoreRoleProvider.cs
- Int32CollectionConverter.cs
- OpCopier.cs
- CompleteWizardStep.cs
- ChangePasswordDesigner.cs
- XmlChildEnumerator.cs
- OleDbRowUpdatingEvent.cs
- SoapHttpTransportImporter.cs
- VirtualizingStackPanel.cs
- EntityDataSourceChangedEventArgs.cs
- PreviewPageInfo.cs
- SessionPageStatePersister.cs
- GlyphCollection.cs
- TabletCollection.cs
- DataGridViewColumnEventArgs.cs
- InvalidateEvent.cs
- UIAgentMonitor.cs
- DataGridTextColumn.cs
- NonSerializedAttribute.cs
- WebHttpSecurityModeHelper.cs
- OdbcHandle.cs
- printdlgexmarshaler.cs
- TextRangeAdaptor.cs
- CatalogPartChrome.cs
- RectangleHotSpot.cs
- LogReservationCollection.cs
- ChannelManager.cs
- Rectangle.cs
- MetafileHeaderEmf.cs
- JsonFormatMapping.cs
- ObjectNavigationPropertyMapping.cs
- Transform.cs
- CompilerTypeWithParams.cs
- SqlLiftIndependentRowExpressions.cs
- MDIWindowDialog.cs