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
- ProcessManager.cs
- EdmFunctionAttribute.cs
- GetParentChain.cs
- StrokeRenderer.cs
- CheckBox.cs
- WindowsUpDown.cs
- MarginCollapsingState.cs
- DataSourceListEditor.cs
- BoolExpr.cs
- AnnotationDocumentPaginator.cs
- MSAANativeProvider.cs
- UTF32Encoding.cs
- SqlUtils.cs
- HttpRuntimeSection.cs
- DesignerActionListCollection.cs
- Matrix.cs
- ADRoleFactory.cs
- EncodingStreamWrapper.cs
- MsmqBindingElementBase.cs
- FontNamesConverter.cs
- SubqueryRules.cs
- ScaleTransform.cs
- XhtmlStyleClass.cs
- DBParameter.cs
- UpdateEventArgs.cs
- CacheRequest.cs
- UserControlBuildProvider.cs
- WindowsSecurityToken.cs
- EditorPart.cs
- KerberosSecurityTokenProvider.cs
- ComponentEditorForm.cs
- StorageEndPropertyMapping.cs
- Image.cs
- cache.cs
- WindowsTreeView.cs
- ApplicationGesture.cs
- SelectedDatesCollection.cs
- WebPartZoneCollection.cs
- CodeAttributeArgument.cs
- DmlSqlGenerator.cs
- SecureUICommand.cs
- _ConnectOverlappedAsyncResult.cs
- Paragraph.cs
- StringSource.cs
- Action.cs
- StyleSheetRefUrlEditor.cs
- CriticalFinalizerObject.cs
- HttpTransportSecurityElement.cs
- X509Chain.cs
- InputLanguageEventArgs.cs
- Crypto.cs
- ContentTextAutomationPeer.cs
- _BasicClient.cs
- XNameConverter.cs
- DataBoundLiteralControl.cs
- RegionInfo.cs
- TabletDevice.cs
- InstanceCreationEditor.cs
- Aggregates.cs
- TextServicesContext.cs
- TextEditorSpelling.cs
- ClientTargetCollection.cs
- Thumb.cs
- GridViewUpdateEventArgs.cs
- CodeArgumentReferenceExpression.cs
- Utils.cs
- OdbcEnvironmentHandle.cs
- Odbc32.cs
- NonVisualControlAttribute.cs
- File.cs
- XmlDictionary.cs
- ConnectionManagementSection.cs
- ObjRef.cs
- GridItemPattern.cs
- SqlDataSourceCache.cs
- KnownTypes.cs
- XmlDownloadManager.cs
- OpCellTreeNode.cs
- ControlPropertyNameConverter.cs
- Table.cs
- EditorPartChrome.cs
- XmlCharType.cs
- CancellationTokenRegistration.cs
- DropTarget.cs
- CommandBindingCollection.cs
- UriScheme.cs
- FtpCachePolicyElement.cs
- DefaultEventAttribute.cs
- documentsequencetextview.cs
- MultilineStringConverter.cs
- BamlTreeNode.cs
- TextServicesLoader.cs
- ColorContext.cs
- ProcessStartInfo.cs
- SynchronousChannelMergeEnumerator.cs
- NetMsmqBinding.cs
- EncoderExceptionFallback.cs
- TriggerActionCollection.cs
- CommandBinding.cs
- CustomErrorsSection.cs