Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / ArithmeticException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- HttpHeaderCollection.cs
- FrameworkContextData.cs
- ThreadAbortException.cs
- DiagnosticTraceSource.cs
- AttributeCollection.cs
- RegexGroupCollection.cs
- CodeIdentifiers.cs
- Executor.cs
- NameHandler.cs
- MetaDataInfo.cs
- Command.cs
- ParserStreamGeometryContext.cs
- EncryptedPackageFilter.cs
- SqlOuterApplyReducer.cs
- MdiWindowListItemConverter.cs
- HttpCacheVaryByContentEncodings.cs
- FrameworkContentElementAutomationPeer.cs
- LoginDesignerUtil.cs
- TextTrailingCharacterEllipsis.cs
- HtmlInputPassword.cs
- AssemblyBuilder.cs
- X509AudioLogo.cs
- UInt16Storage.cs
- MetadataPropertyAttribute.cs
- ObjectDataProvider.cs
- Model3DCollection.cs
- TreeNode.cs
- ModelPerspective.cs
- RemoteDebugger.cs
- PeerObject.cs
- DesignTimeParseData.cs
- ConfigurationPropertyAttribute.cs
- DesignerGeometryHelper.cs
- PeerContact.cs
- DelayedRegex.cs
- IResourceProvider.cs
- TextTreeRootNode.cs
- BindingFormattingDialog.cs
- IdentitySection.cs
- RSAPKCS1KeyExchangeFormatter.cs
- RedistVersionInfo.cs
- PartManifestEntry.cs
- DynamicMetaObjectBinder.cs
- SqlDataSourceSummaryPanel.cs
- EntityDataSourceContainerNameItem.cs
- TypedTableBaseExtensions.cs
- GradientBrush.cs
- ImageClickEventArgs.cs
- MouseEvent.cs
- ComponentCollection.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- MouseActionConverter.cs
- ByteStack.cs
- WinCategoryAttribute.cs
- PolicyFactory.cs
- HttpResponseInternalBase.cs
- LiteralDesigner.cs
- DataGridViewTopRowAccessibleObject.cs
- TextServicesProperty.cs
- ToolTipAutomationPeer.cs
- DynamicRenderer.cs
- PackUriHelper.cs
- ObjectDataSourceDisposingEventArgs.cs
- PropertyTabAttribute.cs
- FactoryGenerator.cs
- SHA512Managed.cs
- SwitchLevelAttribute.cs
- PointConverter.cs
- Tablet.cs
- SqlCacheDependencyDatabaseCollection.cs
- CodeTryCatchFinallyStatement.cs
- WeakReferenceList.cs
- TextTreeNode.cs
- pingexception.cs
- GcSettings.cs
- NonParentingControl.cs
- TableHeaderCell.cs
- PageContentAsyncResult.cs
- ByteAnimationBase.cs
- AuthenticationModulesSection.cs
- Pair.cs
- PageAsyncTask.cs
- HwndHost.cs
- MsmqProcessProtocolHandler.cs
- ModuleConfigurationInfo.cs
- ButtonChrome.cs
- PathData.cs
- RuntimeConfig.cs
- ObjectQuery_EntitySqlExtensions.cs
- NotSupportedException.cs
- WinEventWrap.cs
- ThreadAttributes.cs
- AccessDataSourceView.cs
- QualificationDataItem.cs
- InstancePersistenceCommandException.cs
- coordinatorfactory.cs
- UInt16Converter.cs
- PasswordBox.cs
- SingleObjectCollection.cs
- StringCollection.cs