Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HTMLTextWriter.cs
- TextServicesCompartmentEventSink.cs
- ExpressionBuilder.cs
- Point.cs
- MouseOverProperty.cs
- InvokeCompletedEventArgs.cs
- DataGridViewTextBoxColumn.cs
- ListParagraph.cs
- KeyGesture.cs
- WebWorkflowRole.cs
- SlotInfo.cs
- ipaddressinformationcollection.cs
- AffineTransform3D.cs
- FontFamily.cs
- ThousandthOfEmRealPoints.cs
- ClientSettings.cs
- ProcessManager.cs
- WindowsRichEdit.cs
- Size3DConverter.cs
- CodeAttributeArgument.cs
- XmlTextReaderImpl.cs
- DescendantQuery.cs
- InputChannelAcceptor.cs
- ServiceDescriptions.cs
- MarkupCompilePass2.cs
- PenThread.cs
- AppDomainShutdownMonitor.cs
- EntityType.cs
- TagNameToTypeMapper.cs
- InternalConfigEventArgs.cs
- Exceptions.cs
- CellParagraph.cs
- SqlUserDefinedAggregateAttribute.cs
- PasswordRecovery.cs
- Memoizer.cs
- Process.cs
- DataViewListener.cs
- ClientBuildManager.cs
- RegexBoyerMoore.cs
- ParallelLoopState.cs
- MemberAccessException.cs
- MultiTouchSystemGestureLogic.cs
- SystemThemeKey.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- BrowserTree.cs
- Relationship.cs
- WindowInteropHelper.cs
- DeploymentSection.cs
- WeakEventTable.cs
- InputBinding.cs
- WebServiceHandlerFactory.cs
- XmlUrlResolver.cs
- Section.cs
- ExitEventArgs.cs
- XsltLoader.cs
- IndentedWriter.cs
- ExtensionFile.cs
- DateTimeOffset.cs
- TableSectionStyle.cs
- FileUtil.cs
- CompilerCollection.cs
- CorrelationScope.cs
- ConstantProjectedSlot.cs
- IPEndPointCollection.cs
- UInt32.cs
- CodeAccessSecurityEngine.cs
- LoadWorkflowCommand.cs
- OrthographicCamera.cs
- ModulesEntry.cs
- BCLDebug.cs
- StrokeDescriptor.cs
- BuildResultCache.cs
- RewritingPass.cs
- ExtendedProtectionPolicyElement.cs
- RegexStringValidator.cs
- ColumnMapVisitor.cs
- FunctionDescription.cs
- UrlMappingsModule.cs
- SchemaAttDef.cs
- SecurityElement.cs
- XmlChildEnumerator.cs
- DynamicQueryableWrapper.cs
- WebPartEditVerb.cs
- SerialStream.cs
- AutomationPeer.cs
- SingleAnimationBase.cs
- DiscoveryReference.cs
- SqlConnectionString.cs
- DiscoveryClientBindingElement.cs
- StreamGeometry.cs
- RegexStringValidatorAttribute.cs
- HttpListenerRequestTraceRecord.cs
- _HeaderInfo.cs
- Gdiplus.cs
- TableLayoutPanelBehavior.cs
- safemediahandle.cs
- PropertyInformation.cs
- XmlArrayAttribute.cs
- RadioButtonStandardAdapter.cs
- StrokeSerializer.cs