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
- SimpleHandlerFactory.cs
- TextEditorDragDrop.cs
- MasterPageCodeDomTreeGenerator.cs
- Monitor.cs
- ReferencedCollectionType.cs
- VariableExpressionConverter.cs
- KeyPullup.cs
- SqlInternalConnection.cs
- NativeBuffer.cs
- HtmlInputImage.cs
- ApplicationFileCodeDomTreeGenerator.cs
- XmlWellformedWriterHelpers.cs
- HwndStylusInputProvider.cs
- UDPClient.cs
- QualifiedCellIdBoolean.cs
- HttpHeaderCollection.cs
- SectionVisual.cs
- DependencyObjectProvider.cs
- ColumnResizeUndoUnit.cs
- BitStack.cs
- TCEAdapterGenerator.cs
- EntitySqlQueryBuilder.cs
- ServicePoint.cs
- ExpandCollapsePattern.cs
- PixelFormatConverter.cs
- DrawingContextDrawingContextWalker.cs
- DataChangedEventManager.cs
- ToolStripItemClickedEventArgs.cs
- TabItem.cs
- SafeEventHandle.cs
- ModuleConfigurationInfo.cs
- RegexWriter.cs
- AssemblySettingAttributes.cs
- entitydatasourceentitysetnameconverter.cs
- NavigatingCancelEventArgs.cs
- WebPartZoneAutoFormat.cs
- InitializerFacet.cs
- returneventsaver.cs
- XmlSchemaSimpleTypeUnion.cs
- LinearGradientBrush.cs
- ControlType.cs
- PasswordValidationException.cs
- TableLayoutPanelCellPosition.cs
- DragEvent.cs
- Margins.cs
- ScrollPatternIdentifiers.cs
- QilNode.cs
- EntityTypeBase.cs
- PtsCache.cs
- StylusPoint.cs
- SoapMessage.cs
- XmlParserContext.cs
- dataSvcMapFileLoader.cs
- RegexCompilationInfo.cs
- LoadedOrUnloadedOperation.cs
- FilteredDataSetHelper.cs
- ConfigurationLocation.cs
- Pkcs7Signer.cs
- DispatchChannelSink.cs
- UserNameSecurityTokenParameters.cs
- XmlBinaryReader.cs
- PathSegmentCollection.cs
- SQLDateTimeStorage.cs
- MsmqDecodeHelper.cs
- MetadataProperty.cs
- HttpModuleAction.cs
- MenuItemStyleCollection.cs
- SecurityResources.cs
- TypeSchema.cs
- SoapProcessingBehavior.cs
- CompatibleIComparer.cs
- Reference.cs
- DataGridViewCellStyleChangedEventArgs.cs
- EventItfInfo.cs
- Highlights.cs
- LinqDataSourceContextEventArgs.cs
- TextureBrush.cs
- ExcCanonicalXml.cs
- XmlCharacterData.cs
- TemplateApplicationHelper.cs
- CompilationPass2Task.cs
- XmlSchemaIdentityConstraint.cs
- Rules.cs
- WSHttpBindingCollectionElement.cs
- ResourceType.cs
- NavigationFailedEventArgs.cs
- ListItemCollection.cs
- SqlClientMetaDataCollectionNames.cs
- EntityStoreSchemaGenerator.cs
- TemplateComponentConnector.cs
- ContainerUtilities.cs
- Identity.cs
- ZipIOLocalFileBlock.cs
- TemplateControlBuildProvider.cs
- DbParameterHelper.cs
- ServiceDebugBehavior.cs
- TableLayoutColumnStyleCollection.cs
- RegexInterpreter.cs
- IPGlobalProperties.cs
- SqlServer2KCompatibilityCheck.cs