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
- FormViewRow.cs
- RijndaelCryptoServiceProvider.cs
- SQLInt32Storage.cs
- DateTimeFormatInfo.cs
- WebPartDesigner.cs
- AssociationTypeEmitter.cs
- DataGridToolTip.cs
- Drawing.cs
- Comparer.cs
- ControlEvent.cs
- QilTargetType.cs
- DocumentPageHost.cs
- DragDrop.cs
- QueryCreatedEventArgs.cs
- NativeWrapper.cs
- TextServicesDisplayAttributePropertyRanges.cs
- QilIterator.cs
- AdornerDecorator.cs
- ColumnHeaderConverter.cs
- SizeAnimationBase.cs
- TextProviderWrapper.cs
- SortDescription.cs
- ThreadExceptionEvent.cs
- SqlNotificationEventArgs.cs
- AutomationAttributeInfo.cs
- ScriptBehaviorDescriptor.cs
- InstanceKeyView.cs
- ResourcesBuildProvider.cs
- ZoneIdentityPermission.cs
- DBAsyncResult.cs
- XmlCharCheckingReader.cs
- TreeNodeMouseHoverEvent.cs
- UserMapPath.cs
- ArrayList.cs
- ViewStateException.cs
- SizeIndependentAnimationStorage.cs
- MultiDataTrigger.cs
- DataGridViewCheckBoxColumn.cs
- RightsManagementEncryptedStream.cs
- XPathParser.cs
- WebBrowserHelper.cs
- EnumerableValidator.cs
- DataGridViewSortCompareEventArgs.cs
- FormatConvertedBitmap.cs
- FaultDescription.cs
- AspProxy.cs
- WindowsToolbar.cs
- parserscommon.cs
- FixedMaxHeap.cs
- DeferredRunTextReference.cs
- WindowsStreamSecurityUpgradeProvider.cs
- TreeViewBindingsEditor.cs
- RequestCache.cs
- XmlDataSource.cs
- StateMachineWorkflowDesigner.cs
- CacheMemory.cs
- ComplexObject.cs
- InternalPermissions.cs
- CacheHelper.cs
- ThousandthOfEmRealDoubles.cs
- SecurityPermission.cs
- TreeViewAutomationPeer.cs
- ListViewDeletedEventArgs.cs
- ToolStripCollectionEditor.cs
- GridViewCellAutomationPeer.cs
- BasicKeyConstraint.cs
- FontUnit.cs
- ConnectionStringsExpressionBuilder.cs
- Roles.cs
- XmlDataLoader.cs
- AnonymousIdentificationModule.cs
- UnknownBitmapDecoder.cs
- XmlSchemaAttributeGroup.cs
- ProcessHostConfigUtils.cs
- EdmProviderManifest.cs
- DataSourceProvider.cs
- EdmFunction.cs
- TileModeValidation.cs
- RuntimeWrappedException.cs
- ObjectSecurity.cs
- StateManager.cs
- HierarchicalDataTemplate.cs
- PenThreadPool.cs
- NativeObjectSecurity.cs
- AddInAttribute.cs
- DependentList.cs
- RunClient.cs
- DisableDpiAwarenessAttribute.cs
- DataTableTypeConverter.cs
- TableCell.cs
- Point4DValueSerializer.cs
- StorageMappingItemCollection.cs
- Misc.cs
- EventArgs.cs
- TemplateContent.cs
- RemoteArgument.cs
- Screen.cs
- DiagnosticSection.cs
- BuilderPropertyEntry.cs
- FormatException.cs