Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ObsoleteAttribute.cs
- SslStream.cs
- CustomValidator.cs
- XmlFormatWriterGenerator.cs
- SqlParameter.cs
- LocalFileSettingsProvider.cs
- InvalidDataContractException.cs
- UserControlFileEditor.cs
- CheckBoxFlatAdapter.cs
- EntityContainerEmitter.cs
- EventListenerClientSide.cs
- ReadOnlyDataSourceView.cs
- ByteStack.cs
- XmlSubtreeReader.cs
- TokenBasedSetEnumerator.cs
- CodeGeneratorOptions.cs
- CodeExporter.cs
- NativeMethodsCLR.cs
- RangeContentEnumerator.cs
- RegistryKey.cs
- TextBoxRenderer.cs
- ProfileSection.cs
- ContourSegment.cs
- DSACryptoServiceProvider.cs
- Section.cs
- StringSorter.cs
- SettingsPropertyIsReadOnlyException.cs
- CollectionEditVerbManager.cs
- ServiceMemoryGates.cs
- ControlPropertyNameConverter.cs
- PeerCollaboration.cs
- GetCryptoTransformRequest.cs
- EraserBehavior.cs
- RoleManagerModule.cs
- activationcontext.cs
- ComponentManagerBroker.cs
- PropertyItemInternal.cs
- TriggerBase.cs
- SeverityFilter.cs
- NodeFunctions.cs
- VirtualDirectoryMapping.cs
- PromptBuilder.cs
- Decimal.cs
- PersistenceTypeAttribute.cs
- DPCustomTypeDescriptor.cs
- SerialReceived.cs
- PartialCachingControl.cs
- SignatureHelper.cs
- ParameterModifier.cs
- SoapSchemaExporter.cs
- InArgumentConverter.cs
- WindowsPrincipal.cs
- XsdDuration.cs
- IteratorFilter.cs
- VariantWrapper.cs
- XmlnsDictionary.cs
- XmlElement.cs
- PackageRelationshipCollection.cs
- XmlDataProvider.cs
- ToolStripProgressBar.cs
- AnnotationMap.cs
- TCPClient.cs
- Decorator.cs
- SchemaImporter.cs
- ProxyAttribute.cs
- TextStore.cs
- MarginCollapsingState.cs
- ProxyGenerationError.cs
- SqlDataSourceCommandParser.cs
- AttributeEmitter.cs
- LinqDataSourceUpdateEventArgs.cs
- TextBoxBase.cs
- Type.cs
- NumberFunctions.cs
- ScriptIgnoreAttribute.cs
- FixedTextBuilder.cs
- CompilationUnit.cs
- CommandLibraryHelper.cs
- WorkflowTimerService.cs
- BCryptNative.cs
- ApplicationServiceHelper.cs
- PathParser.cs
- DirectionalLight.cs
- PrimitiveXmlSerializers.cs
- BlurBitmapEffect.cs
- StringWriter.cs
- ProcessInfo.cs
- XPathNavigatorKeyComparer.cs
- TransformPattern.cs
- PresentationAppDomainManager.cs
- ElapsedEventArgs.cs
- LinearGradientBrush.cs
- TemplateBindingExpression.cs
- DataKeyCollection.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- MatchSingleFxEngineOpcode.cs
- WebServiceMethodData.cs
- SimplePropertyEntry.cs
- InternalsVisibleToAttribute.cs
- StylusEditingBehavior.cs