Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- X509CertificateCollection.cs
- ConstructorExpr.cs
- XmlDownloadManager.cs
- FormDesigner.cs
- RangeBase.cs
- ShaperBuffers.cs
- UserControlDocumentDesigner.cs
- SymbolMethod.cs
- CollectionBase.cs
- WizardSideBarListControlItemEventArgs.cs
- DataControlField.cs
- ExpandableObjectConverter.cs
- SafeNativeMethodsMilCoreApi.cs
- FreezableOperations.cs
- HashMembershipCondition.cs
- XpsFilter.cs
- InheritablePropertyChangeInfo.cs
- StatusBarPanel.cs
- PersonalizationProviderCollection.cs
- GenericEnumConverter.cs
- SqlNodeAnnotation.cs
- NaturalLanguageHyphenator.cs
- TemplateEditingVerb.cs
- SqlDataSourceAdvancedOptionsForm.cs
- DesignTimeXamlWriter.cs
- XmlEncodedRawTextWriter.cs
- LoginAutoFormat.cs
- CompilerResults.cs
- CompilationUtil.cs
- CodeDOMUtility.cs
- dsa.cs
- TriggerAction.cs
- OleDbWrapper.cs
- UrlPath.cs
- AnnotationHighlightLayer.cs
- TypeDescriptionProviderAttribute.cs
- ChtmlTextWriter.cs
- DataGridViewRowEventArgs.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DisplayInformation.cs
- SafeFileMappingHandle.cs
- DependencyPropertyKind.cs
- PersonalizationStateInfoCollection.cs
- TransformPattern.cs
- StickyNoteContentControl.cs
- PixelFormatConverter.cs
- MSAAEventDispatcher.cs
- PropertyTabAttribute.cs
- Bits.cs
- BaseValidatorDesigner.cs
- SqlCharStream.cs
- ReversePositionQuery.cs
- EllipticalNodeOperations.cs
- XDeferredAxisSource.cs
- XPathBinder.cs
- AspNetRouteServiceHttpHandler.cs
- ParameterBuilder.cs
- FormViewModeEventArgs.cs
- CodeCommentStatementCollection.cs
- QilScopedVisitor.cs
- ProcessModelInfo.cs
- XmlDataDocument.cs
- Int16Storage.cs
- TransactionFilter.cs
- MetadataException.cs
- ObjectDataProvider.cs
- ComponentCommands.cs
- HelpEvent.cs
- SiteMapNode.cs
- StructuredType.cs
- ExpressionSelection.cs
- XmlObjectSerializerReadContextComplexJson.cs
- Proxy.cs
- AppLevelCompilationSectionCache.cs
- TextMarkerSource.cs
- ArcSegment.cs
- UrlPropertyAttribute.cs
- CodeMemberField.cs
- XmlAttributeCollection.cs
- httpserverutility.cs
- XmlC14NWriter.cs
- SqlInternalConnection.cs
- Menu.cs
- SystemException.cs
- HttpClientCredentialType.cs
- DoubleSumAggregationOperator.cs
- VectorAnimationBase.cs
- ControlCodeDomSerializer.cs
- ColumnTypeConverter.cs
- XmlCodeExporter.cs
- XmlAnyAttributeAttribute.cs
- SrgsElement.cs
- PaginationProgressEventArgs.cs
- ValidatedControlConverter.cs
- ObfuscateAssemblyAttribute.cs
- _HeaderInfoTable.cs
- VoiceChangeEventArgs.cs
- RTLAwareMessageBox.cs
- Types.cs
- DataSourceSelectArguments.cs