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
- TypeUtils.cs
- Popup.cs
- HeaderFilter.cs
- Cursor.cs
- DataFormat.cs
- GridViewPageEventArgs.cs
- SqlUDTStorage.cs
- ITreeGenerator.cs
- HMACSHA256.cs
- HtmlControlPersistable.cs
- TableAutomationPeer.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- PageContentCollection.cs
- TypeInitializationException.cs
- MsmqTransportSecurity.cs
- UnregisterInfo.cs
- NumberSubstitution.cs
- ComponentSerializationService.cs
- MimeMapping.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Attachment.cs
- ValidationEventArgs.cs
- KeyEvent.cs
- X509Utils.cs
- WindowsUpDown.cs
- AssociationType.cs
- EntityException.cs
- DragDropHelper.cs
- InvalidAsynchronousStateException.cs
- RegexWorker.cs
- UIElementParaClient.cs
- RepeatEnumerable.cs
- IndexedString.cs
- PolyLineSegmentFigureLogic.cs
- TdsParser.cs
- MailAddressParser.cs
- CodeSnippetExpression.cs
- _CommandStream.cs
- RuleSetBrowserDialog.cs
- CalendarDesigner.cs
- KeyNotFoundException.cs
- WindowsFormsHostPropertyMap.cs
- SyndicationDeserializer.cs
- AbstractSvcMapFileLoader.cs
- RayMeshGeometry3DHitTestResult.cs
- KeyEventArgs.cs
- SetStoryboardSpeedRatio.cs
- UTF8Encoding.cs
- ExtensionMethods.cs
- StylusDownEventArgs.cs
- DataGridTableCollection.cs
- VirtualizingStackPanel.cs
- MachineKeyValidationConverter.cs
- SourceItem.cs
- CommandHelper.cs
- DSACryptoServiceProvider.cs
- SortKey.cs
- InvokeSchedule.cs
- TextControlDesigner.cs
- MouseActionConverter.cs
- Point4D.cs
- Popup.cs
- ThreadBehavior.cs
- Logging.cs
- WebPartTransformerCollection.cs
- XhtmlBasicValidationSummaryAdapter.cs
- DrawingCollection.cs
- ElementAtQueryOperator.cs
- Events.cs
- CompiledXpathExpr.cs
- ConfigurationManagerHelperFactory.cs
- StringUtil.cs
- DrawingContextWalker.cs
- AuthorizationRuleCollection.cs
- ApplicationDirectoryMembershipCondition.cs
- SynchronizedReadOnlyCollection.cs
- IfElseDesigner.xaml.cs
- VisualBrush.cs
- WindowsFormsSectionHandler.cs
- InkCanvasFeedbackAdorner.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ContextStack.cs
- RsaKeyGen.cs
- SelectionManager.cs
- GlyphElement.cs
- DummyDataSource.cs
- BuilderElements.cs
- AuthenticationSection.cs
- HiddenFieldDesigner.cs
- BitmapFrameEncode.cs
- RectKeyFrameCollection.cs
- EmptyEnumerable.cs
- Margins.cs
- IDispatchConstantAttribute.cs
- DefaultDialogButtons.cs
- MembershipUser.cs
- FormatConvertedBitmap.cs
- InputMethodStateTypeInfo.cs
- SqlAggregateChecker.cs
- EmptyElement.cs