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
- ImageKeyConverter.cs
- ComponentDispatcherThread.cs
- PortCache.cs
- LocalizableResourceBuilder.cs
- IApplicationTrustManager.cs
- ParameterBuilder.cs
- RecognizerInfo.cs
- TimeIntervalCollection.cs
- CheckBox.cs
- GPRECT.cs
- RichTextBoxConstants.cs
- SecurityManager.cs
- TypedRowHandler.cs
- SafeNativeMethods.cs
- AssociationSetMetadata.cs
- FirstQueryOperator.cs
- SymDocumentType.cs
- Size3D.cs
- WebControlAdapter.cs
- BindingOperations.cs
- InfoCardRequestException.cs
- X509UI.cs
- BCLDebug.cs
- SqlProviderManifest.cs
- XmlTextAttribute.cs
- ConfigurationSection.cs
- KnownTypes.cs
- DurableOperationContext.cs
- CachedTypeface.cs
- Identity.cs
- PriorityChain.cs
- BindingExpressionUncommonField.cs
- EventSetter.cs
- _HeaderInfoTable.cs
- WebPartPersonalization.cs
- WindowsStreamSecurityUpgradeProvider.cs
- XmlSubtreeReader.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- BooleanToVisibilityConverter.cs
- Separator.cs
- DataTrigger.cs
- SmtpNtlmAuthenticationModule.cs
- ReadOnlyAttribute.cs
- DataGridViewComponentPropertyGridSite.cs
- ObjectPersistData.cs
- AspCompat.cs
- EventLogPermissionAttribute.cs
- ObjectAnimationBase.cs
- ChineseLunisolarCalendar.cs
- SvcMapFile.cs
- DeflateInput.cs
- WebControl.cs
- Boolean.cs
- RemoteCryptoDecryptRequest.cs
- LinearGradientBrush.cs
- ResXFileRef.cs
- CommonDialog.cs
- ScrollData.cs
- XPathAncestorQuery.cs
- CultureNotFoundException.cs
- Win32.cs
- SecurityContext.cs
- ComponentDispatcherThread.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- WebPartVerb.cs
- AggregationMinMaxHelpers.cs
- AdapterUtil.cs
- FileLevelControlBuilderAttribute.cs
- CssStyleCollection.cs
- CollectionViewGroup.cs
- EmptyEnumerator.cs
- DeclarationUpdate.cs
- CheckBoxField.cs
- SizeChangedEventArgs.cs
- AsyncOperationManager.cs
- AnnouncementInnerClientCD1.cs
- TreeView.cs
- DataRow.cs
- XmlSchemaNotation.cs
- NumericExpr.cs
- BaseEntityWrapper.cs
- MenuItemCollection.cs
- OutputWindow.cs
- Converter.cs
- DragStartedEventArgs.cs
- ConnectionInterfaceCollection.cs
- Label.cs
- ImageAutomationPeer.cs
- QilLiteral.cs
- ThreadPool.cs
- ToolStripKeyboardHandlingService.cs
- CodeThrowExceptionStatement.cs
- ItemDragEvent.cs
- TextBox.cs
- CommonProperties.cs
- FrameworkRichTextComposition.cs
- HttpCachePolicyWrapper.cs
- TreeBuilderBamlTranslator.cs
- UndoEngine.cs
- ResourceDescriptionAttribute.cs