Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / OverflowException.cs / 1 / OverflowException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: OverflowException
**
**
** Purpose: Exception class for Arthimatic Overflows.
**
**
=============================================================================*/
namespace System {
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable()] public class OverflowException : ArithmeticException {
public OverflowException()
: base(Environment.GetResourceString("Arg_OverflowException")) {
SetErrorCode(__HResults.COR_E_OVERFLOW);
}
public OverflowException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_OVERFLOW);
}
public OverflowException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_OVERFLOW);
}
protected OverflowException(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: OverflowException
**
**
** Purpose: Exception class for Arthimatic Overflows.
**
**
=============================================================================*/
namespace System {
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable()] public class OverflowException : ArithmeticException {
public OverflowException()
: base(Environment.GetResourceString("Arg_OverflowException")) {
SetErrorCode(__HResults.COR_E_OVERFLOW);
}
public OverflowException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_OVERFLOW);
}
public OverflowException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_OVERFLOW);
}
protected OverflowException(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
- XamlReader.cs
- MergeEnumerator.cs
- TableCellCollection.cs
- DataSourceControl.cs
- NativeMethods.cs
- Point4DValueSerializer.cs
- SiteMapNode.cs
- IOException.cs
- HtmlButton.cs
- CommandConverter.cs
- WorkflowOwnerAsyncResult.cs
- SqlXmlStorage.cs
- DataStorage.cs
- WebFaultClientMessageInspector.cs
- OdbcReferenceCollection.cs
- WeakHashtable.cs
- ConstructorBuilder.cs
- CachedFontFace.cs
- _IPv4Address.cs
- XmlSchemaComplexContentRestriction.cs
- OdbcErrorCollection.cs
- ModelPerspective.cs
- mediaclock.cs
- DbConnectionPoolIdentity.cs
- BitmapEffectGroup.cs
- Command.cs
- Utils.cs
- PrimitiveDataContract.cs
- DeviceSpecificChoice.cs
- ThemeableAttribute.cs
- StringPropertyBuilder.cs
- RequestCacheValidator.cs
- ProviderCollection.cs
- ScopelessEnumAttribute.cs
- GridItem.cs
- Adorner.cs
- ReflectionServiceProvider.cs
- PopOutPanel.cs
- DataKeyCollection.cs
- log.cs
- DataGridViewCell.cs
- SpeechEvent.cs
- HtmlShimManager.cs
- BinaryMethodMessage.cs
- XmlQueryOutput.cs
- FieldBuilder.cs
- SoapFault.cs
- DesignerDataView.cs
- BaseCollection.cs
- RawStylusActions.cs
- ProfileService.cs
- LogEntrySerializer.cs
- CheckBox.cs
- ControlUtil.cs
- PropertyEmitterBase.cs
- Label.cs
- DesignerActionKeyboardBehavior.cs
- LinkClickEvent.cs
- DrawingBrush.cs
- ResXResourceReader.cs
- AccessedThroughPropertyAttribute.cs
- HorizontalAlignConverter.cs
- ValueSerializer.cs
- Size3DConverter.cs
- CompilationUtil.cs
- Label.cs
- CanonicalFormWriter.cs
- WebPartDisplayModeCancelEventArgs.cs
- MultipleViewPattern.cs
- PackageRelationship.cs
- BitmapInitialize.cs
- FontNameEditor.cs
- ThreadExceptionEvent.cs
- PerspectiveCamera.cs
- NonSerializedAttribute.cs
- DesignRelation.cs
- ArrayList.cs
- DataGridViewSelectedCellCollection.cs
- ReservationCollection.cs
- AssemblyCacheEntry.cs
- RelatedEnd.cs
- FileSystemInfo.cs
- GridViewDeletedEventArgs.cs
- ParameterCollection.cs
- ITreeGenerator.cs
- MenuItemStyleCollectionEditor.cs
- TimeoutException.cs
- MethodToken.cs
- BufferedReadStream.cs
- SplitterPanel.cs
- DBCommandBuilder.cs
- DocumentApplication.cs
- XmlILIndex.cs
- WCFModelStrings.Designer.cs
- DataGridLengthConverter.cs
- IxmlLineInfo.cs
- ContentValidator.cs
- GenericsInstances.cs
- MemoryMappedFileSecurity.cs
- SqlServices.cs