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
- WaveHeader.cs
- Int32AnimationBase.cs
- Sorting.cs
- HttpCookie.cs
- SingletonInstanceContextProvider.cs
- ObjectSpanRewriter.cs
- HttpUnhandledOperationInvoker.cs
- CrossContextChannel.cs
- WorkflowServiceNamespace.cs
- OdbcDataReader.cs
- CellIdBoolean.cs
- WebBrowserContainer.cs
- AppDomainUnloadedException.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- MultiDataTrigger.cs
- ReadWriteControlDesigner.cs
- WebSysDefaultValueAttribute.cs
- DisplayInformation.cs
- LambdaCompiler.ControlFlow.cs
- SqlUDTStorage.cs
- PaperSource.cs
- ImageButton.cs
- DynamicVirtualDiscoSearcher.cs
- ApplicationDirectoryMembershipCondition.cs
- RegistrationServices.cs
- SqlDataSourceSummaryPanel.cs
- TextDocumentView.cs
- DbConnectionInternal.cs
- InputBuffer.cs
- CustomAttribute.cs
- SapiRecognizer.cs
- CorrelationKey.cs
- IPipelineRuntime.cs
- ConvertersCollection.cs
- IssuedTokenParametersElement.cs
- MarkupWriter.cs
- AssociationSetEnd.cs
- PresentationTraceSources.cs
- WebPart.cs
- NavigateUrlConverter.cs
- CmsInterop.cs
- PointAnimationClockResource.cs
- Matrix.cs
- ApplicationInfo.cs
- OracleParameterCollection.cs
- GPRECT.cs
- DbConnectionPoolGroup.cs
- ProviderCollection.cs
- SqlCacheDependency.cs
- ObjectMaterializedEventArgs.cs
- SoapSchemaExporter.cs
- QueryContinueDragEvent.cs
- StoreUtilities.cs
- PhysicalFontFamily.cs
- DataGridLength.cs
- ExtractorMetadata.cs
- WebPartCatalogCloseVerb.cs
- TagElement.cs
- PrintPreviewDialog.cs
- AQNBuilder.cs
- RootBrowserWindow.cs
- Regex.cs
- XPathParser.cs
- PropertyEmitter.cs
- InvokePatternIdentifiers.cs
- X509Extension.cs
- ReadOnlyDataSourceView.cs
- BindingWorker.cs
- addressfiltermode.cs
- BitmapSourceSafeMILHandle.cs
- TransformConverter.cs
- FontNameEditor.cs
- FontCacheUtil.cs
- ConfigPathUtility.cs
- basenumberconverter.cs
- uribuilder.cs
- DirectoryRootQuery.cs
- VisualStyleTypesAndProperties.cs
- TransactionFilter.cs
- NullableIntMinMaxAggregationOperator.cs
- VSWCFServiceContractGenerator.cs
- SocketElement.cs
- SystemIPv6InterfaceProperties.cs
- CookieProtection.cs
- BufferModeSettings.cs
- InputBinding.cs
- SimpleRecyclingCache.cs
- ServicePointManager.cs
- SoapAttributeOverrides.cs
- DataServiceResponse.cs
- Memoizer.cs
- TextHintingModeValidation.cs
- httpserverutility.cs
- ScriptControlDescriptor.cs
- StyleBamlRecordReader.cs
- RegistryConfigurationProvider.cs
- AuthenticateEventArgs.cs
- ListBoxItemAutomationPeer.cs
- ListSortDescription.cs
- SqlDataSourceConnectionPanel.cs