Share via


EntityStateException Class

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

The exception that is thrown when an operation fails due to the current state of an entity.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public Class EntityStateException _
    Inherits Exception _
    Implements ISerializable
'Usage
Dim instance As EntityStateException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public class EntityStateException : Exception, ISerializable
[SerializableAttribute]
[ComVisibleAttribute(false)]
public ref class EntityStateException : public Exception, 
    ISerializable
public class EntityStateException extends Exception implements ISerializable

Remarks

EntityStateException is thrown when the state of an entity prevents an operation from being performed. Examples include attempting to delete an entity that has already been deleted, restoring an entity that has not been deleted, or activating an entity that is already active.

Inheritance Hierarchy

System..::.Object
  System..::.Exception
    Microsoft.CommerceServer.Marketing..::.EntityStateException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

EntityStateException Members

Microsoft.CommerceServer.Marketing Namespace