Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SafeViewOfFileHandle.cs
- StringArrayConverter.cs
- EFColumnProvider.cs
- Button.cs
- DbProviderManifest.cs
- CommonXSendMessage.cs
- OleDbCommand.cs
- Storyboard.cs
- IsolatedStorageException.cs
- DateTimeConstantAttribute.cs
- GeneratedView.cs
- X509CertificateTrustedIssuerElement.cs
- WinInet.cs
- _Events.cs
- ClassGenerator.cs
- ButtonStandardAdapter.cs
- BitmapEffectInput.cs
- PersonalizationState.cs
- XmlSchemaSimpleContent.cs
- XmlResolver.cs
- CodeStatementCollection.cs
- QilReplaceVisitor.cs
- TypedReference.cs
- UnsafeNativeMethods.cs
- precedingquery.cs
- DefaultBinder.cs
- LoginNameDesigner.cs
- WindowsMenu.cs
- RealProxy.cs
- FunctionUpdateCommand.cs
- QueryExpression.cs
- BinaryReader.cs
- EvidenceBase.cs
- EventlogProvider.cs
- CollectionCodeDomSerializer.cs
- Sorting.cs
- UnsafeNativeMethods.cs
- NameValueConfigurationElement.cs
- DataGridViewElement.cs
- DataGridViewCellParsingEventArgs.cs
- coordinatorscratchpad.cs
- MeshGeometry3D.cs
- InsufficientMemoryException.cs
- CompiledIdentityConstraint.cs
- AQNBuilder.cs
- HtmlTableRowCollection.cs
- HttpRequestCacheValidator.cs
- Light.cs
- GlobalizationSection.cs
- PersonalizableTypeEntry.cs
- ServiceProviders.cs
- Inflater.cs
- TimeEnumHelper.cs
- FormsIdentity.cs
- SplineKeyFrames.cs
- ExpandoObject.cs
- Math.cs
- BamlVersionHeader.cs
- UndoManager.cs
- StateWorkerRequest.cs
- ParameterCollectionEditor.cs
- MessageSecurityOverHttp.cs
- WriteFileContext.cs
- XmlSchemas.cs
- AddInAdapter.cs
- BindingList.cs
- OleDbWrapper.cs
- ConvertersCollection.cs
- EventListener.cs
- UInt16Storage.cs
- DependencyPropertyConverter.cs
- PositiveTimeSpanValidatorAttribute.cs
- CodeLinePragma.cs
- _FtpControlStream.cs
- AmbientLight.cs
- PageSettings.cs
- LayoutInformation.cs
- EventLogPermissionEntry.cs
- SqlMetaData.cs
- Version.cs
- InitializationEventAttribute.cs
- SynchronizationContext.cs
- DataGrid.cs
- XXXInfos.cs
- TextOnlyOutput.cs
- DataTemplate.cs
- CompModSwitches.cs
- SoapSchemaImporter.cs
- ButtonBaseAutomationPeer.cs
- ComponentRenameEvent.cs
- LinqDataSourceUpdateEventArgs.cs
- SerializationInfoEnumerator.cs
- CompilerError.cs
- ListBindingConverter.cs
- DataGridViewTextBoxEditingControl.cs
- Task.cs
- BrushConverter.cs
- DataRowCollection.cs
- ReadContentAsBinaryHelper.cs
- ConnectionPointCookie.cs