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
- cookieexception.cs
- CollectionType.cs
- Point3DAnimationUsingKeyFrames.cs
- BridgeDataRecord.cs
- TemplateEditingVerb.cs
- BooleanStorage.cs
- UInt32Storage.cs
- BufferBuilder.cs
- StrongTypingException.cs
- ScaleTransform3D.cs
- CalendarTable.cs
- CheckBoxFlatAdapter.cs
- MainMenu.cs
- OleDbWrapper.cs
- AttributeQuery.cs
- FilterElement.cs
- DataRowCollection.cs
- AnimationClockResource.cs
- DocumentsTrace.cs
- ErrorFormatterPage.cs
- SqlProvider.cs
- SQLDoubleStorage.cs
- SiteMembershipCondition.cs
- HttpGetServerProtocol.cs
- TrimSurroundingWhitespaceAttribute.cs
- ScriptResourceInfo.cs
- RectIndependentAnimationStorage.cs
- PanelStyle.cs
- CompoundFileReference.cs
- EntityDataSourceEntityTypeFilterItem.cs
- HandledMouseEvent.cs
- ToolStripPanelCell.cs
- RotateTransform.cs
- WebPartUtil.cs
- HealthMonitoringSectionHelper.cs
- Input.cs
- MultiDataTrigger.cs
- MailDefinition.cs
- printdlgexmarshaler.cs
- WebPartCatalogCloseVerb.cs
- AttributedMetaModel.cs
- EnumMemberAttribute.cs
- JpegBitmapEncoder.cs
- EventItfInfo.cs
- PassportAuthenticationEventArgs.cs
- Menu.cs
- SimpleWorkerRequest.cs
- DataPagerFieldCollection.cs
- ZipIOLocalFileDataDescriptor.cs
- Vector3DKeyFrameCollection.cs
- ScopedKnownTypes.cs
- GridLength.cs
- ResetableIterator.cs
- DrawingDrawingContext.cs
- Certificate.cs
- SimpleTextLine.cs
- SimpleHandlerFactory.cs
- FaultDesigner.cs
- TrackingProfileSerializer.cs
- ListViewTableRow.cs
- WebBrowserNavigatingEventHandler.cs
- FormViewDeleteEventArgs.cs
- ValueProviderWrapper.cs
- XamlReaderHelper.cs
- ApplicationSecurityInfo.cs
- XMLSchema.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- ArgumentOutOfRangeException.cs
- InitializationEventAttribute.cs
- InputGestureCollection.cs
- WebPartDescription.cs
- ProxyGenerationError.cs
- XmlException.cs
- UrlMappingCollection.cs
- CalendarAutomationPeer.cs
- Point4D.cs
- EventHandlingScope.cs
- FixedPageProcessor.cs
- ButtonStandardAdapter.cs
- Permission.cs
- InternalConfigRoot.cs
- HttpCacheVaryByContentEncodings.cs
- EntitySqlQueryCacheEntry.cs
- BoundingRectTracker.cs
- Stacktrace.cs
- TcpProcessProtocolHandler.cs
- TypeElementCollection.cs
- CellCreator.cs
- ActivityDesignerResources.cs
- ServiceProviders.cs
- InputLangChangeEvent.cs
- CancellationState.cs
- StringTraceRecord.cs
- StrokeRenderer.cs
- SqlBulkCopyColumnMappingCollection.cs
- RotateTransform.cs
- CodeBinaryOperatorExpression.cs
- SqlTypesSchemaImporter.cs
- ValidationPropertyAttribute.cs
- BaseValidator.cs