Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / ArithmeticException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- EmptyElement.cs
- SqlProviderUtilities.cs
- DependencySource.cs
- SiteMapProvider.cs
- CodeMethodInvokeExpression.cs
- CryptoProvider.cs
- KeyPressEvent.cs
- SQLRoleProvider.cs
- RoutedEventHandlerInfo.cs
- DefaultConfirmation.cs
- Group.cs
- DaylightTime.cs
- SiteIdentityPermission.cs
- XmlSchemaAny.cs
- OleDbRowUpdatedEvent.cs
- ColumnCollectionEditor.cs
- ContainerUIElement3D.cs
- ProcessHostMapPath.cs
- QilParameter.cs
- InputScopeManager.cs
- TypeConverters.cs
- DnsEndPoint.cs
- DefaultValueAttribute.cs
- Vector3DValueSerializer.cs
- CryptoKeySecurity.cs
- ComboBox.cs
- TypeUsage.cs
- SerialReceived.cs
- TraceSource.cs
- XmlWellformedWriter.cs
- InputBuffer.cs
- COM2ExtendedBrowsingHandler.cs
- HttpPostedFile.cs
- ServiceMemoryGates.cs
- ArrayHelper.cs
- objectquery_tresulttype.cs
- CodeAttributeArgument.cs
- CatalogZoneBase.cs
- InputReport.cs
- MouseActionValueSerializer.cs
- MobileFormsAuthentication.cs
- AccessViolationException.cs
- ObjectDataSourceEventArgs.cs
- IteratorFilter.cs
- Dump.cs
- TextEditorContextMenu.cs
- TempFiles.cs
- ILGenerator.cs
- NamespaceInfo.cs
- ProcessProtocolHandler.cs
- RegexReplacement.cs
- SafePointer.cs
- EncoderBestFitFallback.cs
- XmlSubtreeReader.cs
- PageRanges.cs
- PointCollection.cs
- ManualResetEvent.cs
- WindowsListViewItem.cs
- SQLConvert.cs
- CommandBindingCollection.cs
- oledbmetadatacolumnnames.cs
- PreProcessInputEventArgs.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- LockedActivityGlyph.cs
- TransformCollection.cs
- MetadataFile.cs
- HuffModule.cs
- X509ChainPolicy.cs
- RadioButtonFlatAdapter.cs
- ModuleConfigurationInfo.cs
- StreamSecurityUpgradeInitiator.cs
- MarkedHighlightComponent.cs
- OracleInfoMessageEventArgs.cs
- BindingMAnagerBase.cs
- _LocalDataStore.cs
- TextWriter.cs
- PrivilegedConfigurationManager.cs
- AuthenticationManager.cs
- ReadOnlyCollectionBase.cs
- TransportBindingElement.cs
- FullTrustAssembly.cs
- ZoneIdentityPermission.cs
- PartitionResolver.cs
- AnonymousIdentificationSection.cs
- AlgoModule.cs
- MimeObjectFactory.cs
- PeerHopCountAttribute.cs
- SurrogateDataContract.cs
- BindingGroup.cs
- MediaEntryAttribute.cs
- SQLSingleStorage.cs
- DbTransaction.cs
- XmlElementAttributes.cs
- TextTreeTextBlock.cs
- SingleResultAttribute.cs
- SoapProtocolReflector.cs
- IssuanceLicense.cs
- DataListItem.cs
- Geometry.cs
- DataGridSortCommandEventArgs.cs