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
- UserControlParser.cs
- ConfigurationValue.cs
- SqlDataSourceFilteringEventArgs.cs
- BamlLocalizableResource.cs
- BuildProviderCollection.cs
- DataGridViewCellMouseEventArgs.cs
- BulletChrome.cs
- AutomationPeer.cs
- ExpressionPrefixAttribute.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ProxySimple.cs
- AssemblyBuilderData.cs
- FilteredAttributeCollection.cs
- CapabilitiesState.cs
- TextBoxRenderer.cs
- MemberCollection.cs
- UnauthorizedWebPart.cs
- CodeIdentifiers.cs
- ObjectSecurity.cs
- MediaElement.cs
- DataSourceComponent.cs
- SqlCacheDependency.cs
- ColumnPropertiesGroup.cs
- TraversalRequest.cs
- StoreConnection.cs
- NativeWindow.cs
- LabelDesigner.cs
- Cursor.cs
- Rijndael.cs
- Pair.cs
- ComponentRenameEvent.cs
- DataContractSerializer.cs
- MetadataProperty.cs
- Material.cs
- WeakReferenceEnumerator.cs
- CustomWebEventKey.cs
- NonSerializedAttribute.cs
- GradientStopCollection.cs
- EntityDataSourceStatementEditorForm.cs
- TextShapeableCharacters.cs
- XmlSchemaAttribute.cs
- ProcessHostServerConfig.cs
- DebugController.cs
- Byte.cs
- GPPOINT.cs
- SymDocumentType.cs
- GlyphingCache.cs
- InternalControlCollection.cs
- DesignRelationCollection.cs
- CommandConverter.cs
- SafeHandles.cs
- WindowsFormsEditorServiceHelper.cs
- oledbmetadatacollectionnames.cs
- SafeCoTaskMem.cs
- Int16AnimationBase.cs
- x509utils.cs
- TextLine.cs
- BitmapEffectDrawingContextState.cs
- InkCanvasAutomationPeer.cs
- TdsRecordBufferSetter.cs
- PeerNameRecord.cs
- DispatcherFrame.cs
- DBSqlParserTableCollection.cs
- ColumnHeaderConverter.cs
- SystemParameters.cs
- TemplatePropertyEntry.cs
- InvalidProgramException.cs
- DefaultSection.cs
- Types.cs
- EventEntry.cs
- InitializationEventAttribute.cs
- DPTypeDescriptorContext.cs
- EmbeddedMailObject.cs
- _ContextAwareResult.cs
- FixedPageProcessor.cs
- TextBoxBase.cs
- SQLGuid.cs
- FamilyMapCollection.cs
- ByeMessageApril2005.cs
- PropertyMetadata.cs
- OdbcEnvironment.cs
- TreeNodeCollection.cs
- ScriptResourceAttribute.cs
- ProfileManager.cs
- RuntimeConfigLKG.cs
- PreservationFileWriter.cs
- _AutoWebProxyScriptWrapper.cs
- MarkupWriter.cs
- HwndHost.cs
- AnimationClock.cs
- DataSourceXmlAttributeAttribute.cs
- TaskHelper.cs
- PointLightBase.cs
- SuppressIldasmAttribute.cs
- ConfigXmlAttribute.cs
- FormatException.cs
- SessionPageStatePersister.cs
- OleDbTransaction.cs
- FailedToStartupUIException.cs
- DataGridViewComboBoxCell.cs