Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / EntityException.cs / 1 / EntityException.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....] [....]
//---------------------------------------------------------------------
namespace System.Data
{
using System;
using System.Data;
using System.Runtime.Serialization;
///
/// Provider exception - Used by the entity client.
///
///
[Serializable]
public class EntityException : DataException
{
///
/// Constructor with default message
///
public EntityException() // required ctor
: base(System.Data.Entity.Strings.EntityClient_ProviderGeneralError)
{
}
///
/// Constructor that accepts a pre-formatted message
///
/// localized error message
public EntityException(string message)
: base(message)
{
}
///
/// Constructor that accepts a pre-formatted message and an inner exception
///
/// localized error message
/// inner exception
public EntityException(string message, Exception innerException)
: base(message, innerException)
{
}
///
/// Constructor for deserialization
///
///
///
protected EntityException(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.
//
//
// @owner [....] [....]
//---------------------------------------------------------------------
namespace System.Data
{
using System;
using System.Data;
using System.Runtime.Serialization;
///
/// Provider exception - Used by the entity client.
///
///
[Serializable]
public class EntityException : DataException
{
///
/// Constructor with default message
///
public EntityException() // required ctor
: base(System.Data.Entity.Strings.EntityClient_ProviderGeneralError)
{
}
///
/// Constructor that accepts a pre-formatted message
///
/// localized error message
public EntityException(string message)
: base(message)
{
}
///
/// Constructor that accepts a pre-formatted message and an inner exception
///
/// localized error message
/// inner exception
public EntityException(string message, Exception innerException)
: base(message, innerException)
{
}
///
/// Constructor for deserialization
///
///
///
protected EntityException(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
- SqlTriggerContext.cs
- ByteAnimation.cs
- AttachInfo.cs
- CapabilitiesState.cs
- TextDocumentView.cs
- ScriptMethodAttribute.cs
- HandledEventArgs.cs
- ResXResourceSet.cs
- ContextBase.cs
- HtmlButton.cs
- CommandManager.cs
- EmptyEnumerator.cs
- CheckBoxPopupAdapter.cs
- StatusBarPanel.cs
- SessionPageStatePersister.cs
- DataServiceConfiguration.cs
- SemaphoreFullException.cs
- TcpChannelListener.cs
- WMICapabilities.cs
- LinkedResourceCollection.cs
- SchemaComplexType.cs
- DataGridViewSelectedRowCollection.cs
- OdbcError.cs
- OLEDB_Enum.cs
- HtmlHistory.cs
- Oci.cs
- GeometryGroup.cs
- GetPageCompletedEventArgs.cs
- SecurityPolicySection.cs
- TextSyndicationContentKindHelper.cs
- TargetControlTypeCache.cs
- ListBoxAutomationPeer.cs
- EventLogPermissionAttribute.cs
- XsdDateTime.cs
- TemplatedControlDesigner.cs
- ChooseAction.cs
- HtmlCommandAdapter.cs
- XpsS0ValidatingLoader.cs
- DataServiceRequestOfT.cs
- FileLogRecordHeader.cs
- ListSortDescriptionCollection.cs
- SoapMessage.cs
- DoubleLinkListEnumerator.cs
- ContainerVisual.cs
- TargetException.cs
- DecoderBestFitFallback.cs
- CodeGenerationManager.cs
- CookieParameter.cs
- InfoCardCryptoHelper.cs
- DBNull.cs
- CompModSwitches.cs
- smtppermission.cs
- ChooseAction.cs
- XmlAnyElementAttribute.cs
- SoapAttributes.cs
- XmlEnumAttribute.cs
- ProcessModelSection.cs
- IsolatedStorageException.cs
- TextFormatterHost.cs
- TimeSpanStorage.cs
- XmlSignatureProperties.cs
- DashStyle.cs
- ValidateNames.cs
- HttpRuntimeSection.cs
- ViewGenerator.cs
- UniqueIdentifierService.cs
- VerticalAlignConverter.cs
- ImageAttributes.cs
- TypeUnloadedException.cs
- EntityModelBuildProvider.cs
- BitmapEffectState.cs
- UnsettableComboBox.cs
- DbQueryCommandTree.cs
- Int32Collection.cs
- StateItem.cs
- PagesSection.cs
- DesignerSerializerAttribute.cs
- XmlSchemaFacet.cs
- WebPartEventArgs.cs
- CharacterBuffer.cs
- GeneralTransform3D.cs
- MetadataImporterQuotas.cs
- SizeConverter.cs
- EnumBuilder.cs
- MenuItem.cs
- unsafenativemethodstextservices.cs
- ScriptHandlerFactory.cs
- RotateTransform3D.cs
- LocalizeDesigner.cs
- TableLayoutSettings.cs
- TextBox.cs
- TextMarkerSource.cs
- TextTreeText.cs
- UnsafeNativeMethods.cs
- DSASignatureDeformatter.cs
- ContainsSearchOperator.cs
- MenuAdapter.cs
- _KerberosClient.cs
- DataGridViewCellFormattingEventArgs.cs
- DrawingContextWalker.cs