Code:
/ FX-1434 / FX-1434 / 1.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
- RelatedView.cs
- WindowsFormsHelpers.cs
- TextBlockAutomationPeer.cs
- DocumentApplicationJournalEntry.cs
- PanelStyle.cs
- TablePattern.cs
- FileRegion.cs
- SqlDataSourceSelectingEventArgs.cs
- SerialPinChanges.cs
- PointUtil.cs
- SqlUtils.cs
- MultiView.cs
- EventLogInformation.cs
- CharacterBufferReference.cs
- SafeFindHandle.cs
- LinqMaximalSubtreeNominator.cs
- TextView.cs
- SkinBuilder.cs
- Helper.cs
- ObjectDataSourceEventArgs.cs
- BufferBuilder.cs
- Socket.cs
- TraceProvider.cs
- XamlFigureLengthSerializer.cs
- LazyTextWriterCreator.cs
- LinqDataSourceContextEventArgs.cs
- UxThemeWrapper.cs
- HttpSocketManager.cs
- XmlIlGenerator.cs
- HostUtils.cs
- TemplateControl.cs
- TextEditorMouse.cs
- MissingSatelliteAssemblyException.cs
- HttpApplicationFactory.cs
- SizeKeyFrameCollection.cs
- MouseBinding.cs
- PriorityRange.cs
- ParseNumbers.cs
- ProjectionCamera.cs
- GenericUriParser.cs
- ValueOfAction.cs
- ValueOfAction.cs
- ValidationErrorEventArgs.cs
- UnknownWrapper.cs
- Control.cs
- ControlParameter.cs
- GregorianCalendar.cs
- BinaryConverter.cs
- InstanceLockQueryResult.cs
- ErasingStroke.cs
- NumericPagerField.cs
- ObjectCloneHelper.cs
- ObjRef.cs
- CriticalExceptions.cs
- CounterSample.cs
- DiffuseMaterial.cs
- EncoderParameters.cs
- PropertyMapper.cs
- DomainUpDown.cs
- RawStylusInput.cs
- Int32AnimationBase.cs
- ChannelServices.cs
- EntityDataSourceWrapper.cs
- Splitter.cs
- ToolStripOverflowButton.cs
- NamespaceEmitter.cs
- RulePatternOps.cs
- unitconverter.cs
- ZipIOLocalFileBlock.cs
- ConversionValidationRule.cs
- TemplatingOptionsDialog.cs
- Triangle.cs
- PrintDialog.cs
- WebPageTraceListener.cs
- HighlightVisual.cs
- StateBag.cs
- XPathDocumentIterator.cs
- CssClassPropertyAttribute.cs
- OleDbReferenceCollection.cs
- BitmapSizeOptions.cs
- BinHexEncoder.cs
- AmbientProperties.cs
- BookmarkResumptionRecord.cs
- WorkflowDataContext.cs
- DiscoveryDocumentSearchPattern.cs
- TypeConverterMarkupExtension.cs
- StorageInfo.cs
- HScrollBar.cs
- XmlSchemaInfo.cs
- ChildTable.cs
- SwitchElementsCollection.cs
- MatrixAnimationBase.cs
- X509Extension.cs
- ToolBarButtonClickEvent.cs
- SoapAttributes.cs
- ElementHostAutomationPeer.cs
- AttachedPropertiesService.cs
- ReadOnlyCollectionBase.cs
- ScrollChrome.cs
- PersonalizationProvider.cs