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
- UndoEngine.cs
- ProfilePropertySettingsCollection.cs
- _Win32.cs
- HandleCollector.cs
- RegexWriter.cs
- HttpListenerPrefixCollection.cs
- HashRepartitionEnumerator.cs
- EventLogHandle.cs
- DesignerActionGlyph.cs
- HMAC.cs
- NeutralResourcesLanguageAttribute.cs
- WorkItem.cs
- ThumbButtonInfo.cs
- BuildResult.cs
- Evidence.cs
- OutputCacheProfileCollection.cs
- CellCreator.cs
- mediapermission.cs
- ResourcesBuildProvider.cs
- FreezableOperations.cs
- Task.cs
- Win32NamedPipes.cs
- Configuration.cs
- Scanner.cs
- FlowDocumentScrollViewer.cs
- DesignerOptionService.cs
- ACE.cs
- DbParameterHelper.cs
- EndpointInfo.cs
- DataServiceConfiguration.cs
- SettingsProperty.cs
- ListenerConstants.cs
- XmlQueryTypeFactory.cs
- WebPartZoneBase.cs
- EntityDataSourceChangingEventArgs.cs
- XmlToDatasetMap.cs
- BaseTreeIterator.cs
- RunWorkerCompletedEventArgs.cs
- ConfigXmlElement.cs
- UnsafeNativeMethods.cs
- FloaterBaseParaClient.cs
- LockedActivityGlyph.cs
- StartFileNameEditor.cs
- HtmlShimManager.cs
- TextTabProperties.cs
- ToolStripDropDownClosedEventArgs.cs
- SiteOfOriginContainer.cs
- SmtpException.cs
- InvokeMethodDesigner.xaml.cs
- SmiEventSink.cs
- MDIClient.cs
- HiddenFieldPageStatePersister.cs
- IntellisenseTextBox.cs
- ArrayConverter.cs
- WpfXamlLoader.cs
- DataGridViewComboBoxColumn.cs
- ListViewTableCell.cs
- DataGridItem.cs
- ImageConverter.cs
- DisableDpiAwarenessAttribute.cs
- SQLDateTime.cs
- TypeInitializationException.cs
- ImageCodecInfo.cs
- ColorContextHelper.cs
- TableLayoutStyle.cs
- XmlnsDictionary.cs
- Track.cs
- RecognizerInfo.cs
- Sentence.cs
- initElementDictionary.cs
- UrlPropertyAttribute.cs
- LoginUtil.cs
- RowParagraph.cs
- ApplyImportsAction.cs
- XsltInput.cs
- KeyFrames.cs
- SimpleExpression.cs
- TypeBrowser.xaml.cs
- Dump.cs
- ZipIOFileItemStream.cs
- ImageDrawing.cs
- XmlDocumentFragment.cs
- TableRowGroupCollection.cs
- Path.cs
- CodeActivityMetadata.cs
- ObjectConverter.cs
- SystemIPInterfaceProperties.cs
- GridViewColumn.cs
- IpcChannel.cs
- AnnotationResource.cs
- IdentityHolder.cs
- Point4DConverter.cs
- ClientRequest.cs
- _NegoState.cs
- ActivationArguments.cs
- IUnknownConstantAttribute.cs
- OptimizerPatterns.cs
- EntitySqlQueryCacheKey.cs
- DataGridViewComboBoxEditingControl.cs
- Processor.cs