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
- HtmlElement.cs
- Transform3D.cs
- CookielessHelper.cs
- LOSFormatter.cs
- Symbol.cs
- Imaging.cs
- MenuAutomationPeer.cs
- BaseTypeViewSchema.cs
- IsolatedStorageFile.cs
- FileLoadException.cs
- CookieParameter.cs
- InstanceStoreQueryResult.cs
- StringKeyFrameCollection.cs
- Int32Storage.cs
- RegexGroupCollection.cs
- SelectionProviderWrapper.cs
- SrgsGrammarCompiler.cs
- XmlNamedNodeMap.cs
- PanelStyle.cs
- TokenBasedSetEnumerator.cs
- WindowClosedEventArgs.cs
- EnvelopedSignatureTransform.cs
- HorizontalAlignConverter.cs
- MemberDescriptor.cs
- FlatButtonAppearance.cs
- DataGridViewCellConverter.cs
- BindableAttribute.cs
- Normalizer.cs
- SqlTrackingService.cs
- DataBindEngine.cs
- RemoteWebConfigurationHostServer.cs
- CryptoProvider.cs
- TextOnlyOutput.cs
- Overlapped.cs
- rsa.cs
- MethodExpression.cs
- OleDbRowUpdatingEvent.cs
- templategroup.cs
- SecurityContextSecurityToken.cs
- SettingsBase.cs
- AppDomainManager.cs
- ProcessHostMapPath.cs
- AnonymousIdentificationModule.cs
- DesignerUtils.cs
- AssertValidation.cs
- SingleKeyFrameCollection.cs
- FilterEventArgs.cs
- XhtmlBasicCalendarAdapter.cs
- Vector3DCollectionValueSerializer.cs
- ChannelToken.cs
- DataGridItemEventArgs.cs
- ScriptRef.cs
- DataGridViewAutoSizeModeEventArgs.cs
- MissingMemberException.cs
- AutoGeneratedField.cs
- COM2TypeInfoProcessor.cs
- MsmqIntegrationOutputChannel.cs
- mil_commands.cs
- SmiEventSink_DeferedProcessing.cs
- ChtmlCalendarAdapter.cs
- SafeNativeMethods.cs
- Rectangle.cs
- XmlLoader.cs
- Int16Storage.cs
- Executor.cs
- NamespaceQuery.cs
- QueryExecutionOption.cs
- WithStatement.cs
- SqlBuilder.cs
- LinkLabel.cs
- MSAAEventDispatcher.cs
- GiveFeedbackEvent.cs
- EntityDataSourceColumn.cs
- HashAlgorithm.cs
- OperationParameterInfoCollection.cs
- C14NUtil.cs
- GroupItemAutomationPeer.cs
- DocumentAutomationPeer.cs
- TextServicesPropertyRanges.cs
- XmlSchemaChoice.cs
- MetadataItem.cs
- Camera.cs
- BulletedList.cs
- RealProxy.cs
- ScrollContentPresenter.cs
- GeneralTransform3DTo2D.cs
- SessionParameter.cs
- ping.cs
- EnvironmentPermission.cs
- SqlSelectClauseBuilder.cs
- ServiceDescriptionImporter.cs
- XmlSchemaAnnotated.cs
- XmlSerializableWriter.cs
- InlineCollection.cs
- Opcode.cs
- HttpHandlerActionCollection.cs
- GenericEnumConverter.cs
- InfoCardTraceRecord.cs
- DynamicEndpointElement.cs
- SafeProcessHandle.cs