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
- ContentElement.cs
- Rect3D.cs
- HtmlLink.cs
- LoginUtil.cs
- SQlBooleanStorage.cs
- ColorMap.cs
- InvokePattern.cs
- XPathParser.cs
- MetadataArtifactLoader.cs
- CollectionBuilder.cs
- PtsContext.cs
- UriExt.cs
- EntityDataSourceWrapperCollection.cs
- RtfControls.cs
- SizeAnimationClockResource.cs
- SplineKeyFrames.cs
- cache.cs
- XsltArgumentList.cs
- Simplifier.cs
- LogEntrySerialization.cs
- WindowsTokenRoleProvider.cs
- DocumentPage.cs
- Ray3DHitTestResult.cs
- DataStreams.cs
- CroppedBitmap.cs
- ZipIOLocalFileHeader.cs
- TableSectionStyle.cs
- NavigationHelper.cs
- WebControlAdapter.cs
- SqlEnums.cs
- CrossSiteScriptingValidation.cs
- BatchServiceHost.cs
- PeerHelpers.cs
- AssemblyNameUtility.cs
- APCustomTypeDescriptor.cs
- AnnotationService.cs
- SourceLineInfo.cs
- AsnEncodedData.cs
- DataBoundControlHelper.cs
- DbProviderFactory.cs
- Model3DGroup.cs
- IImplicitResourceProvider.cs
- XmlHelper.cs
- _IPv4Address.cs
- MetadataCache.cs
- SQLDecimal.cs
- PageAsyncTaskManager.cs
- StackSpiller.Generated.cs
- NativeMethods.cs
- Storyboard.cs
- HttpPostedFile.cs
- _Connection.cs
- DefaultObjectMappingItemCollection.cs
- XPathException.cs
- Win32Exception.cs
- Exceptions.cs
- ExceptionUtil.cs
- KeyValueInternalCollection.cs
- Point3DCollection.cs
- MetadataCache.cs
- StrongNameUtility.cs
- MetadataArtifactLoaderResource.cs
- IteratorFilter.cs
- Hyperlink.cs
- Schema.cs
- SoapDocumentServiceAttribute.cs
- SerializeAbsoluteContext.cs
- DateTimeParse.cs
- BindingCollection.cs
- Enum.cs
- PageContent.cs
- ScriptingRoleServiceSection.cs
- MetafileHeaderWmf.cs
- DataMemberAttribute.cs
- NavigationProgressEventArgs.cs
- NonParentingControl.cs
- ObjectResult.cs
- InvalidContentTypeException.cs
- WebPartAuthorizationEventArgs.cs
- InfiniteIntConverter.cs
- TreeViewDataItemAutomationPeer.cs
- PtsContext.cs
- MSG.cs
- RightsManagementEncryptedStream.cs
- DataSpaceManager.cs
- CompressedStack.cs
- InfoCardUIAgent.cs
- PrivateFontCollection.cs
- FlagsAttribute.cs
- ParserContext.cs
- ListBoxAutomationPeer.cs
- TimelineGroup.cs
- CodeDefaultValueExpression.cs
- PageParser.cs
- OracleSqlParser.cs
- NullableIntMinMaxAggregationOperator.cs
- NameScope.cs
- ClrProviderManifest.cs
- DesignerProperties.cs
- ActivityScheduledQuery.cs