EntityReferencedException Constructor (String, String, String, Exception)
Initializes a new instance of the EntityReferencedException with the specified error message and the type and Id of the entity that caused it.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
entityType As String, _
dependentEntityType As String, _
inner As Exception _
)
'Usage
Dim message As String
Dim entityType As String
Dim dependentEntityType As String
Dim inner As Exception
Dim instance As New EntityReferencedException(message, _
entityType, dependentEntityType, _
inner)
public EntityReferencedException(
string message,
string entityType,
string dependentEntityType,
Exception inner
)
public:
EntityReferencedException(
String^ message,
String^ entityType,
String^ dependentEntityType,
Exception^ inner
)
public function EntityReferencedException(
message : String,
entityType : String,
dependentEntityType : String,
inner : Exception
)
Parameters
- message
Type: System..::.String
The error message that explains the reason for the exception.
- entityType
Type: System..::.String
The type of entity that caused the exception.
- dependentEntityType
Type: System..::.String
The type of the entity which this object depended on.
- inner
Type: System..::.Exception
The exception that is the cause of the current exception, or a nullNothingnullptra null reference (Nothing in Visual Basic) reference (Nothing in Visual Basic) if no inner exception is specified.
Remarks
If the inner parameter is not a nullNothingnullptra null reference (Nothing in Visual Basic) reference, the current exception is raised in a catch block that handles the inner exception.
EntityReferencedException is thrown when an attempt is made to delete an entity which another current entity is dependent upon.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
EntityReferencedException Class
EntityReferencedException Members