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
- CalendarAutomationPeer.cs
- TextCompositionEventArgs.cs
- followingquery.cs
- LineProperties.cs
- DataControlPagerLinkButton.cs
- BamlVersionHeader.cs
- NeutralResourcesLanguageAttribute.cs
- WindowHideOrCloseTracker.cs
- Object.cs
- HttpStreamXmlDictionaryWriter.cs
- SeekableMessageNavigator.cs
- DataListItem.cs
- FixedDocumentPaginator.cs
- SwitchElementsCollection.cs
- DateTimeUtil.cs
- ContentDisposition.cs
- InputReferenceExpression.cs
- CompositeActivityCodeGenerator.cs
- ObjectStateEntry.cs
- NativeBuffer.cs
- OleDbConnectionInternal.cs
- Privilege.cs
- ChangesetResponse.cs
- StrokeNodeOperations.cs
- ComponentDispatcher.cs
- XmlTextAttribute.cs
- Message.cs
- ScrollBarAutomationPeer.cs
- OneOf.cs
- DEREncoding.cs
- RectangleHotSpot.cs
- CleanUpVirtualizedItemEventArgs.cs
- FormView.cs
- ExtendedPropertyCollection.cs
- XmlReflectionMember.cs
- ImageDrawing.cs
- SrgsNameValueTag.cs
- NotifyIcon.cs
- ImageListUtils.cs
- ToRequest.cs
- HttpApplication.cs
- MappingException.cs
- FaultImportOptions.cs
- HtmlInputCheckBox.cs
- ExpressionBinding.cs
- _SslState.cs
- DbConnectionOptions.cs
- InvalidComObjectException.cs
- PageCodeDomTreeGenerator.cs
- DetailsViewPagerRow.cs
- CodeMemberField.cs
- DrawingContextDrawingContextWalker.cs
- RedistVersionInfo.cs
- CapabilitiesUse.cs
- DeliveryRequirementsAttribute.cs
- RadioButton.cs
- EdgeModeValidation.cs
- JsonWriter.cs
- NameValueCache.cs
- ProfilePropertyMetadata.cs
- SafeNativeMethods.cs
- WebColorConverter.cs
- CodeLinePragma.cs
- KeyGestureValueSerializer.cs
- WindowsAuthenticationModule.cs
- PenThreadWorker.cs
- ListBoxChrome.cs
- BindingElementExtensionElement.cs
- DeploymentSection.cs
- BufferAllocator.cs
- HelloOperation11AsyncResult.cs
- DesigntimeLicenseContext.cs
- StreamMarshaler.cs
- BindUriHelper.cs
- HelpEvent.cs
- HtmlEmptyTagControlBuilder.cs
- ContextMenuService.cs
- OdbcDataAdapter.cs
- SoapCodeExporter.cs
- GridViewRowPresenterBase.cs
- DataStorage.cs
- ColorContext.cs
- BindingValueChangedEventArgs.cs
- SR.cs
- FormView.cs
- DataGridViewSelectedCellCollection.cs
- _Semaphore.cs
- CroppedBitmap.cs
- WebReferencesBuildProvider.cs
- DependencyPropertyAttribute.cs
- DataList.cs
- ProfilePropertySettings.cs
- SqlNamer.cs
- DrawingVisual.cs
- SystemFonts.cs
- MimeParameter.cs
- XmlSchemaObjectTable.cs
- XsdBuilder.cs
- Control.cs
- FrameworkElement.cs