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
- SQLInt16.cs
- XmlAnyAttributeAttribute.cs
- FixedElement.cs
- SafeIUnknown.cs
- BooleanSwitch.cs
- CheckBoxFlatAdapter.cs
- ComplexType.cs
- SettingsAttributeDictionary.cs
- SocketManager.cs
- QueryStringParameter.cs
- ComplexBindingPropertiesAttribute.cs
- NumberAction.cs
- DataGridTextBoxColumn.cs
- SqlWorkflowPersistenceService.cs
- DataGrid.cs
- CollectionChangedEventManager.cs
- TaiwanCalendar.cs
- _SslSessionsCache.cs
- WindowsFormsLinkLabel.cs
- MethodAccessException.cs
- SafeHandles.cs
- PageVisual.cs
- HitTestFilterBehavior.cs
- StoreItemCollection.cs
- CultureTable.cs
- WpfPayload.cs
- RootProfilePropertySettingsCollection.cs
- NavigationCommands.cs
- mediaclock.cs
- InputLangChangeRequestEvent.cs
- CalloutQueueItem.cs
- RouteParameter.cs
- ToolTipService.cs
- QilInvokeEarlyBound.cs
- BaseValidator.cs
- ReadContentAsBinaryHelper.cs
- CanonicalXml.cs
- DataTableReader.cs
- DataBindingList.cs
- SID.cs
- DataGridHeaderBorder.cs
- MsmqTransportElement.cs
- ColumnWidthChangedEvent.cs
- XmlSchema.cs
- BatchServiceHost.cs
- DynamicMethod.cs
- Attributes.cs
- ClientBuildManagerCallback.cs
- ApplicationServiceManager.cs
- TextServicesPropertyRanges.cs
- RegexFCD.cs
- ListItemCollection.cs
- LineSegment.cs
- ExtendedPropertyCollection.cs
- EmptyEnumerable.cs
- ComponentTray.cs
- SHA256Cng.cs
- DbParameterHelper.cs
- StylusSystemGestureEventArgs.cs
- WorkflowApplicationException.cs
- XPathSelfQuery.cs
- __TransparentProxy.cs
- KeyedQueue.cs
- HttpCookie.cs
- RadioButtonRenderer.cs
- MasterPageBuildProvider.cs
- PageFunction.cs
- Error.cs
- DataSetViewSchema.cs
- AvTraceDetails.cs
- MultiTrigger.cs
- TypeSystem.cs
- DataTrigger.cs
- WebEvents.cs
- InstanceNormalEvent.cs
- PocoPropertyAccessorStrategy.cs
- NameObjectCollectionBase.cs
- SerializerWriterEventHandlers.cs
- GAC.cs
- TrackingStringDictionary.cs
- ReceiveContextCollection.cs
- CurrencyManager.cs
- Bookmark.cs
- NativeStructs.cs
- WebPartEventArgs.cs
- MemberCollection.cs
- ToolStripControlHost.cs
- _PooledStream.cs
- EventManager.cs
- WasHttpHandlersInstallComponent.cs
- RightNameExpirationInfoPair.cs
- _DisconnectOverlappedAsyncResult.cs
- LocatorPart.cs
- SortDescription.cs
- PrivilegedConfigurationManager.cs
- ItemCollection.cs
- EventToken.cs
- FontFamilyConverter.cs
- LocationReference.cs
- HwndMouseInputProvider.cs