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
- DodSequenceMerge.cs
- Vector3D.cs
- JsonReaderDelegator.cs
- AllowedAudienceUriElementCollection.cs
- CellPartitioner.cs
- FreezableCollection.cs
- Message.cs
- TimelineCollection.cs
- EntityException.cs
- __Error.cs
- CLSCompliantAttribute.cs
- TripleDESCryptoServiceProvider.cs
- PnrpPermission.cs
- DoubleCollectionConverter.cs
- DragDeltaEventArgs.cs
- PublishLicense.cs
- InstanceBehavior.cs
- PropertyManager.cs
- ObjectAnimationBase.cs
- CodeTypeDeclaration.cs
- SiteMapSection.cs
- MouseDevice.cs
- TimeSpanConverter.cs
- PrimitiveSchema.cs
- CodeGroup.cs
- SynchronizedDispatch.cs
- IsolatedStorage.cs
- LogLogRecordEnumerator.cs
- NgenServicingAttributes.cs
- EtwTrace.cs
- PropertyItem.cs
- RelativeSource.cs
- Splitter.cs
- AddInSegmentDirectoryNotFoundException.cs
- RowUpdatingEventArgs.cs
- WindowsFormsHelpers.cs
- File.cs
- ServicesUtilities.cs
- TypeLoadException.cs
- ObjectListItem.cs
- RtfControls.cs
- ValidatorCollection.cs
- HttpRequest.cs
- IdentifierCollection.cs
- TextFormatter.cs
- securitymgrsite.cs
- SerTrace.cs
- ByteStreamMessage.cs
- HtmlElementCollection.cs
- WebPartUtil.cs
- Stream.cs
- EventHandlerService.cs
- KeyInterop.cs
- ElementProxy.cs
- TreeNodeBindingCollection.cs
- InvalidComObjectException.cs
- PointAnimationUsingPath.cs
- DataComponentGenerator.cs
- ConfigurationValidatorBase.cs
- DataServiceRequestOfT.cs
- PersonalizationState.cs
- WeakEventManager.cs
- DesignDataSource.cs
- XPathNodeHelper.cs
- InputDevice.cs
- ReliableChannelListener.cs
- RenamedEventArgs.cs
- SafeLibraryHandle.cs
- CodeTypeReferenceCollection.cs
- ISAPIApplicationHost.cs
- SqlUDTStorage.cs
- XmlUtil.cs
- NamespaceDisplay.xaml.cs
- SaveFileDialog.cs
- EntityClientCacheKey.cs
- FontNamesConverter.cs
- XmlDataSourceNodeDescriptor.cs
- DynamicMetaObject.cs
- Binding.cs
- SessionKeyExpiredException.cs
- TextDecorationCollectionConverter.cs
- ExternalCalls.cs
- CodeCompileUnit.cs
- MultiPropertyDescriptorGridEntry.cs
- SqlError.cs
- CodeIdentifiers.cs
- PolyQuadraticBezierSegment.cs
- TextBoxBase.cs
- AsyncSerializedWorker.cs
- OperatingSystem.cs
- CellTreeSimplifier.cs
- AssociationType.cs
- SelectionRangeConverter.cs
- ComplexTypeEmitter.cs
- CheckBoxAutomationPeer.cs
- OrderedDictionaryStateHelper.cs
- SourceLocationProvider.cs
- DataServiceStreamProviderWrapper.cs
- DateTimeUtil.cs
- ModifierKeysConverter.cs