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
- XmlIncludeAttribute.cs
- ApplicationTrust.cs
- UIPermission.cs
- View.cs
- PropertySourceInfo.cs
- HitTestParameters.cs
- Psha1DerivedKeyGenerator.cs
- Pts.cs
- XmlSchemaParticle.cs
- EntityViewContainer.cs
- ConstantProjectedSlot.cs
- Tile.cs
- RemoteWebConfigurationHostStream.cs
- SQLBinary.cs
- TableAutomationPeer.cs
- TempFiles.cs
- Rotation3DAnimationUsingKeyFrames.cs
- GPPOINT.cs
- MappingModelBuildProvider.cs
- FtpWebRequest.cs
- WorkItem.cs
- LightweightCodeGenerator.cs
- IdleTimeoutMonitor.cs
- ManagementDateTime.cs
- DataGridViewCellCollection.cs
- ImageIndexConverter.cs
- ConnectionInterfaceCollection.cs
- TableLayoutStyleCollection.cs
- ComplusTypeValidator.cs
- TreeBuilder.cs
- ArithmeticException.cs
- WorkflowPrinting.cs
- DataProtection.cs
- HtmlInputPassword.cs
- coordinatorscratchpad.cs
- NamedPipeTransportManager.cs
- BufferedOutputStream.cs
- XmlSchemaComplexContentExtension.cs
- LayoutEvent.cs
- RowToFieldTransformer.cs
- SQLDateTime.cs
- Statements.cs
- TimersDescriptionAttribute.cs
- ToolStripButton.cs
- ExtensionDataObject.cs
- FunctionParameter.cs
- PresentationUIStyleResources.cs
- DirectoryObjectSecurity.cs
- XmlSchemaAnyAttribute.cs
- DataGridColumnHeader.cs
- MultiTrigger.cs
- QuerySettings.cs
- MSAAWinEventWrap.cs
- UserControlBuildProvider.cs
- _DomainName.cs
- StringComparer.cs
- RoutedCommand.cs
- NeutralResourcesLanguageAttribute.cs
- FaultReason.cs
- XmlSchemaSimpleTypeList.cs
- Point3DCollection.cs
- ThreadInterruptedException.cs
- AutoGeneratedFieldProperties.cs
- EntitySqlQueryBuilder.cs
- CFStream.cs
- DataMemberAttribute.cs
- StreamWriter.cs
- PropertyFilterAttribute.cs
- SharedPersonalizationStateInfo.cs
- TimelineGroup.cs
- CrossContextChannel.cs
- SecurityTokenResolver.cs
- RegexCharClass.cs
- DataReceivedEventArgs.cs
- ObjectStateEntryDbDataRecord.cs
- ConfigurationFileMap.cs
- ReferenceEqualityComparer.cs
- ProtocolsConfiguration.cs
- SqlUserDefinedAggregateAttribute.cs
- DataGridLinkButton.cs
- SspiSafeHandles.cs
- VirtualDirectoryMapping.cs
- BitmapMetadata.cs
- GlyphCache.cs
- WebBrowserEvent.cs
- AnnotationDocumentPaginator.cs
- SecurityDescriptor.cs
- EntityDataSourceChangingEventArgs.cs
- CacheManager.cs
- NonSerializedAttribute.cs
- TextRunProperties.cs
- RequestQueue.cs
- MobileContainerDesigner.cs
- EventLogEntryCollection.cs
- ResXDataNode.cs
- KeyValueSerializer.cs
- OracleSqlParser.cs
- RowUpdatingEventArgs.cs
- WebZoneDesigner.cs
- JsonClassDataContract.cs