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
- UpdateCompiler.cs
- CommunicationObject.cs
- Signature.cs
- WebEventTraceProvider.cs
- BinaryFormatter.cs
- ToolStripScrollButton.cs
- DesignerCategoryAttribute.cs
- CssClassPropertyAttribute.cs
- CommandEventArgs.cs
- NextPreviousPagerField.cs
- ReadOnlyDataSource.cs
- XmlSchemaGroupRef.cs
- StringValidatorAttribute.cs
- SqlClientMetaDataCollectionNames.cs
- Brushes.cs
- tooltip.cs
- PackageDigitalSignatureManager.cs
- SqlMethodAttribute.cs
- FileAuthorizationModule.cs
- DataGridViewHitTestInfo.cs
- RotateTransform3D.cs
- PasswordTextNavigator.cs
- EntityContainer.cs
- XmlTextReaderImplHelpers.cs
- _ProxyChain.cs
- CreateUserWizardStep.cs
- URLAttribute.cs
- NetSectionGroup.cs
- SignatureToken.cs
- TextBoxLine.cs
- PeerName.cs
- HtmlTernaryTree.cs
- SmtpFailedRecipientsException.cs
- TableLayoutSettingsTypeConverter.cs
- ObsoleteAttribute.cs
- TrayIconDesigner.cs
- QueryExpression.cs
- ProgramNode.cs
- MexTcpBindingCollectionElement.cs
- TextSegment.cs
- D3DImage.cs
- CachedPathData.cs
- IisTraceListener.cs
- FontStyle.cs
- ListView.cs
- CircleHotSpot.cs
- DesignerAttribute.cs
- ArgumentsParser.cs
- SemaphoreFullException.cs
- StateBag.cs
- XmlIlTypeHelper.cs
- mediaeventshelper.cs
- SnapLine.cs
- ExtendedProtectionPolicy.cs
- RecordsAffectedEventArgs.cs
- Vector3DAnimationBase.cs
- ContextMenuAutomationPeer.cs
- PlatformNotSupportedException.cs
- DomainConstraint.cs
- PrintController.cs
- CopyNamespacesAction.cs
- SmtpException.cs
- EntityContainerEmitter.cs
- ConfigurationConverterBase.cs
- ToolStripMenuItem.cs
- HttpCapabilitiesSectionHandler.cs
- StreamWriter.cs
- XmlAnyAttributeAttribute.cs
- MessageLogTraceRecord.cs
- LoginView.cs
- SetState.cs
- HttpListenerRequestUriBuilder.cs
- SerializationInfoEnumerator.cs
- MetadataItemEmitter.cs
- VariableBinder.cs
- EventPrivateKey.cs
- File.cs
- HideDisabledControlAdapter.cs
- Message.cs
- TransformDescriptor.cs
- ToolStripLabel.cs
- VisualTreeUtils.cs
- DataKeyArray.cs
- TemplatePropertyEntry.cs
- ListManagerBindingsCollection.cs
- EasingQuaternionKeyFrame.cs
- SimpleMailWebEventProvider.cs
- CodeTypeReference.cs
- Stream.cs
- TimerExtension.cs
- PersonalizablePropertyEntry.cs
- ArrayItemReference.cs
- CursorEditor.cs
- DecimalConverter.cs
- SimpleMailWebEventProvider.cs
- jithelpers.cs
- PermissionSetEnumerator.cs
- WebPartConnectionsEventArgs.cs
- XappLauncher.cs
- SmiMetaDataProperty.cs