Class DuplicateCreateCommandException
The operation resulted in a duplicate.
Inheritance
Inherited Members
Namespace: Cqrs.Domain.Exceptions
Assembly: Cqrs.dll
Syntax
[Serializable]
public class DuplicateCreateCommandException : Exception, ISerializable, _Exception
Constructors
DuplicateCreateCommandException(Exception)
Instantiate a new instance of DuplicateCreateCommandException with a reference to the inner exception
that is the cause of this System.Exception.
Declaration
public DuplicateCreateCommandException(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The System.Exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner System.Exception is specified. |
DuplicateCreateCommandException(String, Exception)
Instantiate a new instance of DuplicateCreateCommandException with a specified message
and a reference to the inner exception
that is the cause of this System.Exception.
Declaration
public DuplicateCreateCommandException(string message, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
System.Exception | exception | The System.Exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner System.Exception is specified. |
DuplicateCreateCommandException(Type, Guid, Exception)
Instantiate a new instance of DuplicateCreateCommandException with
the commandType
and commandId
that was issued as well as
a reference to the inner exception
that is the cause of this System.Exception.
Declaration
public DuplicateCreateCommandException(Type commandType, Guid commandId, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Type | commandType | The System.Type of the ICommand<TAuthenticationToken> that was issued. |
System.Guid | commandId | The Id of the ICommand<TAuthenticationToken> that was issued. |
System.Exception | exception | The System.Exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner System.Exception is specified. |
Properties
CommandId
The Id of the ICommand<TAuthenticationToken> that was issued.
Declaration
[DataMember]
public Guid CommandId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
CommandType
The System.Type of the ICommand<TAuthenticationToken> that was issued.
Declaration
[DataMember]
public Type CommandType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |