Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Typeface.cs
- DataTableMappingCollection.cs
- LayoutEvent.cs
- WebColorConverter.cs
- FrameworkElement.cs
- RuntimeWrappedException.cs
- PropertyChangeTracker.cs
- SvcMapFileLoader.cs
- SHA384.cs
- CleanUpVirtualizedItemEventArgs.cs
- XmlEncoding.cs
- TypeLibConverter.cs
- TreeViewEvent.cs
- DataBindingCollection.cs
- SqlDataSourceConnectionPanel.cs
- AppDomainUnloadedException.cs
- EntitySqlQueryCacheKey.cs
- HashSet.cs
- ResolveCriteria11.cs
- WebBrowserNavigatedEventHandler.cs
- GlyphElement.cs
- ObjectViewFactory.cs
- DescendantBaseQuery.cs
- ItemContainerGenerator.cs
- BindableAttribute.cs
- selecteditemcollection.cs
- SmiRequestExecutor.cs
- PrintEvent.cs
- XmlAttributes.cs
- SecurityException.cs
- DelegateBodyWriter.cs
- IsolatedStoragePermission.cs
- RijndaelManagedTransform.cs
- WebBrowsableAttribute.cs
- ExclusiveCanonicalizationTransform.cs
- FileStream.cs
- UpdatePanelTrigger.cs
- BulletChrome.cs
- RegexStringValidatorAttribute.cs
- AutomationIdentifierGuids.cs
- NativeMethods.cs
- TreeNodeSelectionProcessor.cs
- TemplateBindingExtension.cs
- DataPagerFieldCollection.cs
- XmlBinaryWriter.cs
- FileFormatException.cs
- SqlPersonalizationProvider.cs
- ClientScriptManager.cs
- QueryNode.cs
- SemanticResolver.cs
- QueryOutputWriter.cs
- WebPartConnectionsConnectVerb.cs
- TextEditorParagraphs.cs
- HttpResponse.cs
- AlternateView.cs
- HierarchicalDataBoundControlAdapter.cs
- PageRanges.cs
- StaticExtension.cs
- CompatibleIComparer.cs
- InfoCardProofToken.cs
- UniformGrid.cs
- BinaryCommonClasses.cs
- ObjectFullSpanRewriter.cs
- SystemInfo.cs
- GeometryGroup.cs
- SelectiveScrollingGrid.cs
- PageCatalogPart.cs
- SortedList.cs
- SmtpNtlmAuthenticationModule.cs
- RijndaelManaged.cs
- InfoCardBaseException.cs
- CopyNamespacesAction.cs
- StoryFragments.cs
- BasicExpandProvider.cs
- StorageMappingItemCollection.cs
- SyndicationSerializer.cs
- DataException.cs
- Codec.cs
- columnmapkeybuilder.cs
- FaultDesigner.cs
- LayoutSettings.cs
- _CommandStream.cs
- ValidationHelper.cs
- InputManager.cs
- TemplateControlCodeDomTreeGenerator.cs
- XmlSecureResolver.cs
- PersonalizationStateQuery.cs
- ComponentSerializationService.cs
- SelectionPattern.cs
- Deserializer.cs
- ObjectAnimationBase.cs
- DataReceivedEventArgs.cs
- followingsibling.cs
- DataObjectAttribute.cs
- ConfigXmlWhitespace.cs
- ElapsedEventArgs.cs
- TextViewSelectionProcessor.cs
- DurableEnlistmentState.cs
- Message.cs
- CustomPopupPlacement.cs