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
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- WorkflowMarkupSerializationException.cs
- AppDomainFactory.cs
- AdvancedBindingEditor.cs
- CheckBox.cs
- BindingExpression.cs
- AssociationSetEnd.cs
- AutoResetEvent.cs
- AlgoModule.cs
- StreamReader.cs
- HitTestParameters3D.cs
- XmlBufferedByteStreamReader.cs
- HwndStylusInputProvider.cs
- FilterException.cs
- SplitterEvent.cs
- StandardBindingElement.cs
- InfocardChannelParameter.cs
- LabelLiteral.cs
- UnhandledExceptionEventArgs.cs
- SQLMembershipProvider.cs
- QueryInterceptorAttribute.cs
- MulticastDelegate.cs
- XmlNamedNodeMap.cs
- Process.cs
- Point3DCollectionValueSerializer.cs
- SubstitutionList.cs
- StrongNameSignatureInformation.cs
- QueryGenerator.cs
- EditCommandColumn.cs
- PackageRelationshipCollection.cs
- ModuleConfigurationInfo.cs
- InstanceHandleConflictException.cs
- GraphicsContext.cs
- TypefaceCollection.cs
- CalendarButton.cs
- TrackingStringDictionary.cs
- GuidelineSet.cs
- BlobPersonalizationState.cs
- EntityTypeEmitter.cs
- HTMLTextWriter.cs
- TakeQueryOptionExpression.cs
- EndPoint.cs
- ToolStripManager.cs
- EncodingNLS.cs
- CommonDialog.cs
- DashStyle.cs
- StrokeSerializer.cs
- Semaphore.cs
- EdgeModeValidation.cs
- DropDownButton.cs
- BrushMappingModeValidation.cs
- SqlXmlStorage.cs
- DiagnosticTraceSource.cs
- JsonDeserializer.cs
- UniqueIdentifierService.cs
- AppSecurityManager.cs
- shaper.cs
- DEREncoding.cs
- shaperfactoryquerycacheentry.cs
- Util.cs
- EntityDataSource.cs
- TypeHelper.cs
- ListDictionary.cs
- SafeLibraryHandle.cs
- ClientSponsor.cs
- DbgUtil.cs
- ProcessRequestArgs.cs
- EntityDataSource.cs
- DuplicateMessageDetector.cs
- TransactionChannelListener.cs
- ButtonAutomationPeer.cs
- ListBindableAttribute.cs
- ToolStripGripRenderEventArgs.cs
- DefaultSection.cs
- SHA512.cs
- Inflater.cs
- ProcessProtocolHandler.cs
- GlyphsSerializer.cs
- ModifierKeysConverter.cs
- AsymmetricCryptoHandle.cs
- ApplicationTrust.cs
- PtsCache.cs
- Line.cs
- QueryContext.cs
- HiddenFieldPageStatePersister.cs
- SqlDataSourceEnumerator.cs
- GridSplitter.cs
- MdbDataFileEditor.cs
- DataTableMappingCollection.cs
- ResourcePool.cs
- XDeferredAxisSource.cs
- XmlElement.cs
- HiddenField.cs
- DataSourceDescriptorCollection.cs
- WindowsListView.cs
- EditorZoneAutoFormat.cs
- WebPermission.cs
- SecurityVerifiedMessage.cs
- ThrowOnMultipleAssignment.cs
- Stroke2.cs