Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- OrderedDictionary.cs
- ValidatorCollection.cs
- PersonalizablePropertyEntry.cs
- UnauthorizedAccessException.cs
- SrgsRuleRef.cs
- CodeDelegateCreateExpression.cs
- AtomServiceDocumentSerializer.cs
- JapaneseLunisolarCalendar.cs
- NamespaceInfo.cs
- SystemFonts.cs
- SdlChannelSink.cs
- TranslateTransform.cs
- OdbcUtils.cs
- Operand.cs
- BitmapEffectRenderDataResource.cs
- Composition.cs
- GlobalEventManager.cs
- ExceptionHelpers.cs
- FieldNameLookup.cs
- BatchWriter.cs
- KerberosRequestorSecurityToken.cs
- PackageDigitalSignatureManager.cs
- XmlBinaryReader.cs
- ConfigurationManagerInternalFactory.cs
- DataSourceHelper.cs
- ReversePositionQuery.cs
- ToolStripSeparatorRenderEventArgs.cs
- CopyOfAction.cs
- AssemblyHash.cs
- RequestContext.cs
- ContainerFilterService.cs
- IpcPort.cs
- HwndSourceKeyboardInputSite.cs
- ReaderWriterLock.cs
- CheckBox.cs
- SqlMethods.cs
- BoundField.cs
- SQLDecimal.cs
- HtmlObjectListAdapter.cs
- SubMenuStyleCollection.cs
- OpenTypeLayout.cs
- AuthenticateEventArgs.cs
- ConfigurationStrings.cs
- CharEntityEncoderFallback.cs
- Bold.cs
- CachedFontFamily.cs
- TextRunCache.cs
- SQLGuid.cs
- LinkButton.cs
- FrameworkPropertyMetadata.cs
- AdornerLayer.cs
- InstallerTypeAttribute.cs
- SearchForVirtualItemEventArgs.cs
- SerTrace.cs
- WpfSharedXamlSchemaContext.cs
- Ipv6Element.cs
- ValuePattern.cs
- ListenerSessionConnection.cs
- SecurityResources.cs
- WMICapabilities.cs
- IBuiltInEvidence.cs
- _OSSOCK.cs
- DesignOnlyAttribute.cs
- PerfCounters.cs
- MessageAction.cs
- ToolboxDataAttribute.cs
- String.cs
- TemplatedControlDesigner.cs
- XmlILConstructAnalyzer.cs
- CalendarBlackoutDatesCollection.cs
- Subtract.cs
- Rethrow.cs
- _PooledStream.cs
- ObjectSet.cs
- WorkflowInstanceProvider.cs
- StrokeCollection2.cs
- FlowThrottle.cs
- TraceContext.cs
- PngBitmapDecoder.cs
- TabPanel.cs
- Style.cs
- RenamedEventArgs.cs
- LinkLabel.cs
- WinCategoryAttribute.cs
- DecimalAnimation.cs
- COM2TypeInfoProcessor.cs
- OutputCacheProfile.cs
- SQLResource.cs
- SingleAnimationUsingKeyFrames.cs
- JournalNavigationScope.cs
- SizeAnimationUsingKeyFrames.cs
- LabelDesigner.cs
- RecordsAffectedEventArgs.cs
- ReadContentAsBinaryHelper.cs
- DecoderExceptionFallback.cs
- SymDocumentType.cs
- xdrvalidator.cs
- WebPart.cs
- XNodeSchemaApplier.cs
- InkCanvasAutomationPeer.cs