Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / EntityCommandExecutionException.cs / 1305376 / EntityCommandExecutionException.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
namespace System.Data {
using System;
using System.IO;
using System.Data.Common;
using System.Globalization;
using System.Runtime.Serialization;
using System.Security.Permissions;
///
/// Represents a failure while trying to prepare or execute a CommandExecution
///
/// This exception is intended to provide a common exception that people can catch to
/// hold provider exceptions (SqlException, OracleException) when using the EntityCommand
/// to execute statements.
///
[Serializable]
public sealed class EntityCommandExecutionException : EntityException {
#region Constructors
///
/// initializes a new instance of EntityCommandExecutionException, no message, no inner exception. Probably shouldn't
/// exist, but it makes FxCop happy.
///
public EntityCommandExecutionException()
: base() {
HResult = HResults.CommandExecution;
}
///
/// initializes a new instance of EntityCommandExecutionException, with message, no inner exception. Probably shouldn't
/// exist, but it makes FxCop happy.
///
public EntityCommandExecutionException(string message)
: base(message) {
HResult = HResults.CommandExecution;
}
///
/// initializes a new instance of EntityCommandExecutionException with message and an inner exception instance
///
///
///
public EntityCommandExecutionException(string message, Exception innerException)
: base(message, innerException) {
HResult = HResults.CommandExecution;
}
///
/// initializes a new instance EntityCommandExecutionException with a given SerializationInfo and StreamingContext
///
///
///
private EntityCommandExecutionException(SerializationInfo serializationInfo, StreamingContext streamingContext)
: base(serializationInfo, streamingContext) {
HResult = HResults.CommandExecution;
}
#endregion
}
}
// 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
- GlyphManager.cs
- HtmlProps.cs
- GregorianCalendarHelper.cs
- FlowDocumentScrollViewer.cs
- DateRangeEvent.cs
- AnnotationResourceCollection.cs
- MaskInputRejectedEventArgs.cs
- DbInsertCommandTree.cs
- RowUpdatingEventArgs.cs
- ToolStripItemRenderEventArgs.cs
- DataSpaceManager.cs
- TraceHandlerErrorFormatter.cs
- NullableDecimalAverageAggregationOperator.cs
- ContentPlaceHolder.cs
- AssertSection.cs
- Geometry.cs
- Attribute.cs
- RenderData.cs
- DocumentEventArgs.cs
- TextPattern.cs
- MexHttpBindingCollectionElement.cs
- Point.cs
- BasicCellRelation.cs
- ConfigXmlElement.cs
- AssemblyBuilderData.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ConstrainedDataObject.cs
- BigInt.cs
- PopupEventArgs.cs
- PointUtil.cs
- ItemList.cs
- WebPartCatalogCloseVerb.cs
- MimeObjectFactory.cs
- HandlerBase.cs
- RequestQueryParser.cs
- PointCollection.cs
- columnmapkeybuilder.cs
- FirstMatchCodeGroup.cs
- SqlServices.cs
- FixedSOMTable.cs
- WindowsListViewItemCheckBox.cs
- StateChangeEvent.cs
- KeyToListMap.cs
- EDesignUtil.cs
- OleDbRowUpdatingEvent.cs
- RegexGroup.cs
- NullableFloatSumAggregationOperator.cs
- PropertyGridEditorPart.cs
- RouteParametersHelper.cs
- Directory.cs
- Operand.cs
- NonClientArea.cs
- DesignerForm.cs
- PackagingUtilities.cs
- BitmapEffectGroup.cs
- DictionaryContent.cs
- SegmentInfo.cs
- DynamicDataRouteHandler.cs
- ActiveXSite.cs
- Dispatcher.cs
- ElementAtQueryOperator.cs
- RequestSecurityToken.cs
- AlternateViewCollection.cs
- WindowsListBox.cs
- NamedPipeAppDomainProtocolHandler.cs
- ScrollProviderWrapper.cs
- SmiMetaDataProperty.cs
- ImageClickEventArgs.cs
- _Win32.cs
- KeyConverter.cs
- WebHttpBinding.cs
- FlowDocumentFormatter.cs
- ThemeDirectoryCompiler.cs
- AutomationIdentifierGuids.cs
- SpecularMaterial.cs
- Automation.cs
- HexParser.cs
- ProviderConnectionPoint.cs
- Native.cs
- _ChunkParse.cs
- DateTimeAutomationPeer.cs
- FontWeight.cs
- DeviceContext2.cs
- RectConverter.cs
- x509store.cs
- PageCatalogPart.cs
- RevocationPoint.cs
- XmlSchemaInfo.cs
- GeometryCollection.cs
- AttributeTableBuilder.cs
- TraceUtils.cs
- XdrBuilder.cs
- PenContexts.cs
- KnownBoxes.cs
- StateDesigner.CommentLayoutGlyph.cs
- GridLengthConverter.cs
- MaskedTextBox.cs
- ClientFormsAuthenticationCredentials.cs
- loginstatus.cs
- EdmProperty.cs